mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 15:54:15 +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
|
|
|