Closed
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>`
...