]> git.lizzy.rs Git - rust.git/blob - src/test/ui/if-ret.stderr
Auto merge of #75936 - sdroege:chunks-exact-construction-bounds-check, r=nagisa
[rust.git] / src / test / ui / if-ret.stderr
1 warning: unreachable block in `if` expression
2   --> $DIR/if-ret.rs:6:24
3    |
4 LL | fn foo() { if (return) { } }
5    |               -------- ^^^ unreachable block in `if` expression
6    |               |
7    |               any code following this expression is unreachable
8    |
9    = note: `#[warn(unreachable_code)]` on by default
10
11 warning: 1 warning emitted
12