2022-03-24 06:27:07 -05:00
|
|
|
error: this operation will panic at runtime
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/crashes/ice-5497.rs:11:22
|
2022-03-24 06:27:07 -05:00
|
|
|
|
|
|
|
|
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
|
|
|
|
|
2023-11-21 11:08:42 -06:00
|
|
|
error: aborting due to 1 previous error
|
2022-03-24 06:27:07 -05:00
|
|
|
|