mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-22 11:03:16 +00:00
10 lines
325 B
Text
10 lines
325 B
Text
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
|
|
|