diff options
Diffstat (limited to 'src/tools/clippy/tests/ui/crashes/ice-5497.stderr')
-rw-r--r-- | src/tools/clippy/tests/ui/crashes/ice-5497.stderr | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/tools/clippy/tests/ui/crashes/ice-5497.stderr b/src/tools/clippy/tests/ui/crashes/ice-5497.stderr new file mode 100644 index 000000000..e75e7dc91 --- /dev/null +++ b/src/tools/clippy/tests/ui/crashes/ice-5497.stderr @@ -0,0 +1,10 @@ +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 previous error + |