rust/tests/ui/consts/array-literal-len-mismatch.rs
2023-02-12 02:15:41 +00:00

5 lines
131 B
Rust

const NUMBERS: [u8; 3] = [10, 20];
//~^ ERROR mismatched types
//~^^ HELP consider specifying the actual array length
fn main() {}