blob: 41bbd791862be5ec217f63b0f0a133f814696288 [file] [log] [blame]
warning: unreachable block in `if` expression
--> $DIR/if-ret.rs:6:24
|
LL | fn foo() { if (return) { } }
| -------- ^^^ unreachable block in `if` expression
| |
| any code following this expression is unreachable
|
= note: `#[warn(unreachable_code)]` on by default
warning: 1 warning emitted