2021-08-08 09:49:13 -05:00
|
|
|
warning: unreachable block in `if` or `while` expression
|
2019-09-01 16:30:19 -05:00
|
|
|
--> $DIR/if-ret.rs:6:24
|
|
|
|
|
|
|
|
|
LL | fn foo() { if (return) { } }
|
2021-08-08 09:49:13 -05:00
|
|
|
| -------- ^^^ unreachable block in `if` or `while` expression
|
2019-09-21 14:33:02 -05:00
|
|
|
| |
|
|
|
|
| any code following this expression is unreachable
|
2019-09-01 16:30:19 -05:00
|
|
|
|
|
|
|
|
= note: `#[warn(unreachable_code)]` on by default
|
|
|
|
|
2020-03-11 10:30:09 -05:00
|
|
|
warning: 1 warning emitted
|
|
|
|
|