rust/src/test/ui/consts/const-prop-ice2.stderr

11 lines
320 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 len is 1 but the index is 1
2018-11-08 13:18:26 -06:00
|
= note: `#[deny(panic)]` on by default
2018-11-08 13:18:26 -06:00
error: aborting due to previous error