about summary refs log tree commit diff
path: root/tests/ui/expr/if/if-ret.stderr
blob: e53a1e3b08131f5b5e3efdf2115d24684febbfc8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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)]` (part of `#[warn(unused)]`) on by default

warning: 1 warning emitted