-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
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
Code
const NUMBERS: [u8; 3] = [10, 20];Current output
|
7 | const NUMBERS: [u8; 3] = [10, 20];
| ^^^^^^^^ expected an array with a fixed size of 3 elements, found one with 2 elements
Desired output
|
7 | const NUMBERS: [u8; 3] = [10, 20];
| ^ help: consider specifying the array length: `2`
|
Rationale and extra context
Works nicer in an IDE.
Other cases
No response
Anything else?
No response
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.