blob: f1690e595e5d1367941ccc95e3a742a9b96dc6c1 [file] [log] [blame]
error: unreachable block in `if` expression
--> $DIR/expr_if.rs:7:17
|
LL | if {return} {
| _________________^
LL | | println!("Hello, world!");
LL | | }
| |_____^
|
note: lint level defined here
--> $DIR/expr_if.rs:4:9
|
LL | #![deny(unreachable_code)]
| ^^^^^^^^^^^^^^^^
error: unreachable statement
--> $DIR/expr_if.rs:27:5
|
LL | println!("But I am.");
| ^^^^^^^^^^^^^^^^^^^^^^
|
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
error: aborting due to 2 previous errors