summaryrefslogtreecommitdiffstats
path: root/tests/ui/consts/array-literal-len-mismatch.rs
blob: b30ff61a99c53cb260c6125ac0d9f4b8a6bf7dc2 (plain)
1
2
3
4
const NUMBERS: [u8; 3] = [10, 20];
//~^ ERROR mismatched types
//~^^ HELP consider specifying the actual array length
fn main() {}