mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
11 lines
309 B
Plaintext
11 lines
309 B
Plaintext
error: this operation will panic at runtime
|
|
--> $DIR/unconditional_panic_promoted.rs:7:13
|
|
|
|
|
LL | let _ = slice[2];
|
|
| ^^^^^^^^ index out of bounds: the length is 2 but the index is 2
|
|
|
|
|
= note: `#[deny(unconditional_panic)]` on by default
|
|
|
|
error: aborting due to 1 previous error
|
|
|