blob: 41bbd791862be5ec217f63b0f0a133f814696288 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
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
|