Closed
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