-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Closed
Copy link
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsT-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
Given the following code:
trait Qqq {
const A;
}
The current output is:
error[E0121]: the placeholder `_` is not allowed within types on item signatures for constants
--> src/lib.rs:2:12
|
2 | const A;
| ^ not allowed in type signatures
error: missing type for `const` item
--> src/lib.rs:2:12
|
2 | const A;
| ^ help: provide a type for the item: `: <type>`
...
Ideally the output should look like:
error: missing type for `const` item
--> src/lib.rs:2:12
|
2 | const A;
| ^ help: provide a type for the item: `: <type>`
...
Metadata
Metadata
Assignees
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsT-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.