2020-02-15 03:47:27 -06:00
|
|
|
error: this operation will panic at runtime
|
2019-12-13 21:28:32 -06:00
|
|
|
--> $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]);
|
2020-02-15 03:47:27 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^ index out of bounds: the len is 1 but the index is 1
|
2018-11-08 13:18:26 -06:00
|
|
|
|
|
2020-02-15 03:47:27 -06:00
|
|
|
= note: `#[deny(panic)]` on by default
|
2018-11-08 13:18:26 -06:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|