-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
Open
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsD-verboseDiagnostics: Too much output caused by a single piece of incorrect code.Diagnostics: Too much output caused by a single piece of incorrect code.F-min_generic_const_args`#![feature(min_generic_const_args)]``#![feature(min_generic_const_args)]`P-lowLow priorityLow priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Description
With syntactic type mismatch I'm referring to mismatches detected by the pre-normalization check in HIR ty lowering for tuples & non-repeat arrays (as contrasted with the semantic ConstArgHasType check used for other expr kinds).
Reproducers:
#![feature(min_generic_const_args)]
#![expect(incomplete_features)]
type const T0: _ = ();error[E0121]: the placeholder `_` is not allowed within types on item signatures for constants
--> file.rs:4:16
|
4 | type const T0: _ = ();
| ^ not allowed in type signatures
error: expected `{type error}`, found const tuple
--> file.rs:4:20
|
4 | type const T0: _ = ();
| ^^
#![feature(min_generic_const_args)]
#![expect(incomplete_features)]
type const T1 = [0];error: missing type for `const` item
--> file.rs:4:14
|
4 | type const T1 = [0];
| ^
|
help: provide a type for the item
|
4 | type const T1: <type> = [0];
| ++++++++
error: expected `{type error}`, found const array
--> file.rs:4:17
|
4 | type const T1 = [0];
| ^^^
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsD-verboseDiagnostics: Too much output caused by a single piece of incorrect code.Diagnostics: Too much output caused by a single piece of incorrect code.F-min_generic_const_args`#![feature(min_generic_const_args)]``#![feature(min_generic_const_args)]`P-lowLow priorityLow priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.