| warning: unreachable statement |
| --> $DIR/never-assign-dead-code.rs:9:5 |
| | |
| LL | let x: ! = panic!("aah"); |
| | ------------- any code following this expression is unreachable |
| LL | drop(x); |
| | ^^^^^^^^ unreachable statement |
| | |
| note: lint level defined here |
| --> $DIR/never-assign-dead-code.rs:5:9 |
| | |
| LL | #![warn(unused)] |
| | ^^^^^^ |
| = note: `#[warn(unreachable_code)]` implied by `#[warn(unused)]` |
| = note: this warning originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) |
| |
| warning: unreachable call |
| --> $DIR/never-assign-dead-code.rs:9:5 |
| | |
| LL | drop(x); |
| | ^^^^ - any code following this expression is unreachable |
| | | |
| | unreachable call |
| |
| warning: unused variable: `x` |
| --> $DIR/never-assign-dead-code.rs:8:9 |
| | |
| LL | let x: ! = panic!("aah"); |
| | ^ help: consider prefixing with an underscore: `_x` |
| | |
| note: lint level defined here |
| --> $DIR/never-assign-dead-code.rs:5:9 |
| | |
| LL | #![warn(unused)] |
| | ^^^^^^ |
| = note: `#[warn(unused_variables)]` implied by `#[warn(unused)]` |
| |