blob: 2f7dd3bd563a43d61e24e5a7dcec7ac882b58433 (
plain)
1
2
3
4
5
6
7
8
9
10
|
error: this operation will panic at runtime
--> tests/ui/crashes/ice-5497.rs:11:22
|
LL | const OOB: i32 = [1][1] + T::OOB;
| ^^^^^^ 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
|