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