rust/tests/ui/consts/const-prop-ice2.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
337 B
Plaintext
Raw Normal View History

error: this operation will panic at runtime
--> $DIR/const-prop-ice2.rs:6:20
2018-11-08 13:18:26 -06:00
|
2019-03-09 06:03:44 -06:00
LL | println!("{}", xs[Enum::One as usize]);
| ^^^^^^^^^^^^^^^^^^^^^^ index out of bounds: the length is 1 but the index is 1
2018-11-08 13:18:26 -06:00
|
2020-02-18 15:49:47 -06:00
= note: `#[deny(unconditional_panic)]` on by default
2018-11-08 13:18:26 -06:00
error: aborting due to previous error