1 error: unreachable statement
2 --> $DIR/expr_match.rs:8:5
4 LL | match () { () => return }
5 | ------------------------- any code following this `match` expression is unreachable, as all arms diverge
6 LL | println!("I am dead");
7 | ^^^^^^^^^^^^^^^^^^^^^ unreachable statement
9 note: the lint level is defined here
10 --> $DIR/expr_match.rs:4:9
12 LL | #![deny(unreachable_code)]
14 = note: this error originates in the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info)
16 error: unreachable statement
17 --> $DIR/expr_match.rs:19:5
19 LL | match () { () if false => return, () => return }
20 | ------------------------------------------------ any code following this `match` expression is unreachable, as all arms diverge
21 LL | println!("I am dead");
22 | ^^^^^^^^^^^^^^^^^^^^^ unreachable statement
24 = note: this error originates in the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info)
26 error: aborting due to 2 previous errors