blob: cb1b760c282b5e5e28dbd17f9b59e5adb8b5b402 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
error: unreachable statement
--> $DIR/unreachable-code.rs:7:3
|
LL | loop{}
| ------ any code following this expression is unreachable
LL |
LL | let a = 3;
| ^^^^^^^^^^ unreachable statement
|
note: the lint level is defined here
--> $DIR/unreachable-code.rs:1:9
|
LL | #![deny(unreachable_code)]
| ^^^^^^^^^^^^^^^^
error: aborting due to previous error
|