mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-14 01:25:54 +00:00
40 lines
891 B
Plaintext
40 lines
891 B
Plaintext
error: value assigned to `x` is never read
|
|
--> $DIR/liveness-dead.rs:9:13
|
|
|
|
|
LL | let mut x: isize = 3;
|
|
| ^
|
|
|
|
|
= help: maybe it is overwritten before being read?
|
|
note: the lint level is defined here
|
|
--> $DIR/liveness-dead.rs:2:9
|
|
|
|
|
LL | #![deny(unused_assignments)]
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
error: value assigned to `x` is never read
|
|
--> $DIR/liveness-dead.rs:17:5
|
|
|
|
|
LL | x = 4;
|
|
| ^
|
|
|
|
|
= help: maybe it is overwritten before being read?
|
|
|
|
error: value passed to `x` is never read
|
|
--> $DIR/liveness-dead.rs:20:11
|
|
|
|
|
LL | fn f4(mut x: i32) {
|
|
| ^
|
|
|
|
|
= help: maybe it is overwritten before being read?
|
|
|
|
error: value assigned to `x` is never read
|
|
--> $DIR/liveness-dead.rs:27:5
|
|
|
|
|
LL | x = 4;
|
|
| ^
|
|
|
|
|
= help: maybe it is overwritten before being read?
|
|
|
|
error: aborting due to 4 previous errors
|
|
|