rust/tests/ui/consts/const-prop-ice2.stderr
2023-01-11 09:32:08 +00:00

11 lines
337 B
Plaintext

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