summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-2150.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/issues/issue-2150.stderr')
-rw-r--r--tests/ui/issues/issue-2150.stderr16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/ui/issues/issue-2150.stderr b/tests/ui/issues/issue-2150.stderr
new file mode 100644
index 000000000..26874faa2
--- /dev/null
+++ b/tests/ui/issues/issue-2150.stderr
@@ -0,0 +1,16 @@
+error: unreachable statement
+ --> $DIR/issue-2150.rs:8:5
+ |
+LL | panic!();
+ | -------- any code following this expression is unreachable
+LL | for x in &v { i += 1; }
+ | ^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement
+ |
+note: the lint level is defined here
+ --> $DIR/issue-2150.rs:1:9
+ |
+LL | #![deny(unreachable_code)]
+ | ^^^^^^^^^^^^^^^^
+
+error: aborting due to previous error
+