blob: c1944efab8beaa18f2ec5c53e114f95af83f4c16 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
error: unreachable statement
--> $DIR/issue-2150.rs:18:5
|
LL | for x in &v { i += 1; }
| ^^^^^^^^^^^^^^^^^^^^^^^
|
note: lint level defined here
--> $DIR/issue-2150.rs:11:9
|
LL | #![deny(unreachable_code)]
| ^^^^^^^^^^^^^^^^
error: aborting due to previous error
|