summaryrefslogtreecommitdiffstats
path: root/src/test/ui/consts/const-prop-ice2.stderr
blob: 2b65ffc2db76058ae536c38470a1ad66a69bf435 (plain)
1
2
3
4
5
6
7
8
9
10
error: this operation will panic at runtime
  --> $DIR/const-prop-ice2.rs:6:20
   |
LL |     println!("{}", xs[Enum::One as usize]);
   |                    ^^^^^^^^^^^^^^^^^^^^^^ index out of bounds: the length is 1 but the index is 1
   |
   = note: `#[deny(unconditional_panic)]` on by default

error: aborting due to previous error