]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const-prop-ice2.stderr
Rollup merge of #64603 - gilescope:unused-lifetime-warning, r=matthewjasper
[rust.git] / src / test / ui / consts / const-prop-ice2.stderr
1 error: index out of bounds: the len is 1 but the index is 1
2   --> $DIR/const-prop-ice2.rs:4:20
3    |
4 LL |     println!("{}", xs[Enum::One as usize]);
5    |                    ^^^^^^^^^^^^^^^^^^^^^^
6    |
7    = note: `#[deny(const_err)]` on by default
8
9 error: aborting due to previous error
10