mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-06 05:33:59 +00:00
13 lines
379 B
Plaintext
13 lines
379 B
Plaintext
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
|
|
|