fork/rust
git clone https://git.julia.blue/fork/rust
4560ea788cb
1.39.0
1warning: unreachable statement 2 --> $DIR/never-assign-dead-code.rs:10:5 3 | 4LL | let x: ! = panic!("aah"); 5 | ------------- any code following this expression is unreachable 6LL | drop(x); 7 | ^^^^^^^^ unreachable statement 8 | 9note: lint level defined here 10 --> $DIR/never-assign-dead-code.rs:5:9 11 | 12LL | #![warn(unused)] 13 | ^^^^^^ 14 = note: `#[warn(unreachable_code)]` implied by `#[warn(unused)]` 15 = note: this warning originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) 16 17warning: unreachable call 18 --> $DIR/never-assign-dead-code.rs:10:5 19 | 20LL | drop(x); 21 | ^^^^ - any code following this expression is unreachable 22 | | 23 | unreachable call 24 25warning: unused variable: `x` 26 --> $DIR/never-assign-dead-code.rs:9:9 27 | 28LL | let x: ! = panic!("aah"); 29 | ^ help: consider prefixing with an underscore: `_x` 30 | 31note: lint level defined here 32 --> $DIR/never-assign-dead-code.rs:5:9 33 | 34LL | #![warn(unused)] 35 | ^^^^^^ 36 = note: `#[warn(unused_variables)]` implied by `#[warn(unused)]` 37