summaryrefslogtreecommitdiffstats
path: root/tests/ui/lint/unconditional_panic_98444.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/lint/unconditional_panic_98444.stderr')
-rw-r--r--tests/ui/lint/unconditional_panic_98444.stderr10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/lint/unconditional_panic_98444.stderr b/tests/ui/lint/unconditional_panic_98444.stderr
new file mode 100644
index 000000000..a34745809
--- /dev/null
+++ b/tests/ui/lint/unconditional_panic_98444.stderr
@@ -0,0 +1,10 @@
+error: this operation will panic at runtime
+ --> $DIR/unconditional_panic_98444.rs:6:13
+ |
+LL | let _ = xs[7];
+ | ^^^^^ index out of bounds: the length is 5 but the index is 7
+ |
+ = note: `#[deny(unconditional_panic)]` on by default
+
+error: aborting due to previous error
+