rust-clippy/tests/ui/crashes/ice-5497.stderr
Nilstrieb c2c73189c8 Bless clippy tests
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
2023-11-24 19:15:52 +01:00

10 lines
312 B
Text

error: this operation will panic at runtime
--> $DIR/ice-5497.rs:9: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