]>
Commit | Line | Data |
---|---|---|
8faf50e0 | 1 | error: unreachable statement |
0731742a | 2 | --> $DIR/issue-2150.rs:8:5 |
8faf50e0 | 3 | | |
e1599b0c | 4 | LL | panic!(); |
c295e0f8 | 5 | | -------- any code following this expression is unreachable |
8faf50e0 | 6 | LL | for x in &v { i += 1; } |
e1599b0c | 7 | | ^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement |
8faf50e0 | 8 | | |
74b04a01 | 9 | note: the lint level is defined here |
0731742a | 10 | --> $DIR/issue-2150.rs:1:9 |
8faf50e0 XL |
11 | | |
12 | LL | #![deny(unreachable_code)] | |
13 | | ^^^^^^^^^^^^^^^^ | |
14 | ||
15 | error: aborting due to previous error | |
16 |