rust/tests/ui/expr/if/if-ret.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
379 B
Plaintext
Raw Normal View History

2021-08-08 09:49:13 -05:00
warning: unreachable block in `if` or `while` expression
--> $DIR/if-ret.rs:6:24
|
LL | fn foo() { if (return) { } }
2021-08-08 09:49:13 -05:00
| -------- ^^^ 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