]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const-array-oob.stderr
Rollup merge of #64603 - gilescope:unused-lifetime-warning, r=matthewjasper
[rust.git] / src / test / ui / consts / const-array-oob.stderr
1 error[E0080]: evaluation of constant value failed
2   --> $DIR/const-array-oob.rs:6:19
3    |
4 LL | const BLUB: [u32; FOO[4]] = [5, 6];
5    |                   ^^^^^^ index out of bounds: the len is 3 but the index is 4
6
7 error: aborting due to previous error
8
9 For more information about this error, try `rustc --explain E0080`.