mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
41e8d152dc
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
11 lines
339 B
Plaintext
11 lines
339 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 1 previous error
|
|
|