Files
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
407 B
Plaintext
Raw Normal View History

2021-08-08 11:49:13 -03:00
warning: unreachable block in `if` or `while` expression
--> $DIR/if-ret.rs:5:24
|
LL | fn foo() { if (return) { } }
2021-08-08 11:49:13 -03:00
| -------- ^^^ unreachable block in `if` or `while` expression
| |
| any code following this expression is unreachable
|
2025-04-28 13:47:25 +02:00
= note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default
warning: 1 warning emitted