error: unreachable expression --> $DIR/expr_unary.rs:19:28 | 19 | let x: ! = ! { return; 22 }; //~ ERROR unreachable | ^^ | note: lint level defined here --> $DIR/expr_unary.rs:14:9 | 14 | #![deny(unreachable_code)] | ^^^^^^^^^^^^^^^^ error: cannot coerce `{integer}` to ! --> $DIR/expr_unary.rs:19:28 | 19 | let x: ! = ! { return; 22 }; //~ ERROR unreachable | ^^ | note: lint level defined here --> $DIR/expr_unary.rs:15:9 | 15 | #![deny(coerce_never)] | ^^^^^^^^^^^^ = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! = note: for more information, see issue #46325 error[E0600]: cannot apply unary operator `!` to type `!` --> $DIR/expr_unary.rs:19:16 | 19 | let x: ! = ! { return; 22 }; //~ ERROR unreachable | ^^^^^^^^^^^^^^^^ error: aborting due to 3 previous errors