summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-2150.stderr
blob: 26874faa2b9385f8c8d52273c50631f54fe9d99d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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