33 lines
823 B
Plaintext
33 lines
823 B
Plaintext
warning: unreachable statement
|
|
--> $DIR/never-assign-dead-code.rs:10:5
|
|
|
|
|
LL | drop(x); //~ WARN unreachable
|
|
| ^^^^^^^^
|
|
|
|
|
note: lint level defined here
|
|
--> $DIR/never-assign-dead-code.rs:5:9
|
|
|
|
|
LL | #![warn(unused)]
|
|
| ^^^^^^
|
|
= note: #[warn(unreachable_code)] implied by #[warn(unused)]
|
|
|
|
warning: unreachable expression
|
|
--> $DIR/never-assign-dead-code.rs:10:5
|
|
|
|
|
LL | drop(x); //~ WARN unreachable
|
|
| ^^^^^^^
|
|
|
|
warning: unused variable: `x`
|
|
--> $DIR/never-assign-dead-code.rs:9:9
|
|
|
|
|
LL | let x: ! = panic!("aah"); //~ WARN unused
|
|
| ^ help: consider using `_x` instead
|
|
|
|
|
note: lint level defined here
|
|
--> $DIR/never-assign-dead-code.rs:5:9
|
|
|
|
|
LL | #![warn(unused)]
|
|
| ^^^^^^
|
|
= note: #[warn(unused_variables)] implied by #[warn(unused)]
|
|
|