fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0308]: mismatched types 2 --> $DIR/const-array-oob-arith.rs:5:45 3 | 4LL | const BLUB: [i32; (ARR[0] - 40) as usize] = [5]; 5 | ---------------------- ^^^ expected an array with a fixed size of 2 elements, found one with 1 element 6 | | 7 | help: consider specifying the actual array length: `1` 8 9error[E0308]: mismatched types 10 --> $DIR/const-array-oob-arith.rs:8:44 11 | 12LL | const BOO: [i32; (ARR[0] - 41) as usize] = [5, 99]; 13 | ---------------------- ^^^^^^^ expected an array with a fixed size of 1 element, found one with 2 elements 14 | | 15 | help: consider specifying the actual array length: `2` 16 17error: aborting due to 2 previous errors 18 19For more information about this error, try `rustc --explain E0308`.