mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-03 13:37:37 +00:00

Done with ```bash sd '//@ pretty-expanded.*\n' '' tests/ui/**/*.rs ``` and ``` sd '//@pretty-expanded.*\n' '' tests/ui/**/*.rs ```
13 lines
379 B
Plaintext
13 lines
379 B
Plaintext
warning: unreachable block in `if` or `while` expression
|
|
--> $DIR/if-ret.rs:5: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
|
|
|