blob: 8ced271aabc2b909e09302a2dcab3758c437586c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
warning: unreachable block in `if` or `while` expression
--> $DIR/if-ret.rs:6: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
|