]> git.proxmox.com Git - rustc.git/blob - src/test/ui/expr/if/if-ret.stderr
New upstream version 1.50.0+dfsg1
[rustc.git] / src / test / ui / expr / if / 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