about summary refs log tree commit diff
path: root/tests/ui/lint/unconditional_panic_promoted.stderr
blob: 647a84a55fda55982fb6cee7504a1a9546f3de08 (plain)
1
2
3
4
5
6
7
8
9
10
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