]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const-array-oob.stderr
Rollup merge of #53317 - estebank:abolish-ice, r=oli-obk
[rust.git] / src / test / ui / consts / const-array-oob.stderr
1 error: index out of bounds: the len is 3 but the index is 4
2   --> $DIR/const-array-oob.rs:18:19
3    |
4 LL | const BLUB: [u32; FOO[4]] = [5, 6];
5    |                   ^^^^^^
6    |
7    = note: #[deny(const_err)] on by default
8
9 error[E0080]: could not evaluate constant expression
10   --> $DIR/const-array-oob.rs:18:1
11    |
12 LL | const BLUB: [u32; FOO[4]] = [5, 6];
13    | ^^^^^^^^^^^^^^^^^^------^^^^^^^^^^^
14    |                   |
15    |                   index out of bounds: the len is 3 but the index is 4
16
17 error: aborting due to 2 previous errors
18
19 For more information about this error, try `rustc --explain E0080`.