Closed
Description
Given the following code: play
const A: [_; 3] = [1u8, 2, 3];
The current output is:
error[E0121]: the type placeholder `_` is not allowed within types on item signatures
--> src/lib.rs:1:10
|
1 | const A: [_; 3] = [1u8, 2, 3];
| ^^^^^^
| |
| not allowed in type signatures
| help: replace `_` with the correct type: `[u8; 3]`
Ideally the output should look like:
error[E0121]: the type placeholder `_` is not allowed within types on item signatures
--> src/lib.rs:1:10
|
1 | const A: [_; 3] = [1u8, 2, 3];
| ^^^^^^
| |
| not allowed in type signatures
| help: replace `_` with the correct type: `u8`
@rustbot claim
@rustbot label D-incorrect D-invalid-suggestion