mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 23:34:48 +00:00
18 lines
394 B
Plaintext
18 lines
394 B
Plaintext
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
|
|
|