2018-08-08 07:28:26 -05:00
|
|
|
error: value assigned to `x` is never read
|
|
|
|
--> $DIR/liveness-dead.rs:19:13
|
|
|
|
|
|
|
|
|
LL | let mut x: isize = 3; //~ ERROR: value assigned to `x` is never read
|
|
|
|
| ^
|
|
|
|
|
|
|
|
|
note: lint level defined here
|
|
|
|
--> $DIR/liveness-dead.rs:12:9
|
|
|
|
|
|
|
|
|
LL | #![deny(unused_assignments)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
2018-12-07 08:15:36 -06:00
|
|
|
= help: maybe it is overwritten before being read?
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error: value assigned to `x` is never read
|
|
|
|
--> $DIR/liveness-dead.rs:27:5
|
|
|
|
|
|
|
|
|
LL | x = 4; //~ ERROR: value assigned to `x` is never read
|
|
|
|
| ^
|
2018-12-07 08:15:36 -06:00
|
|
|
|
|
|
|
|
= help: maybe it is overwritten before being read?
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error: value passed to `x` is never read
|
|
|
|
--> $DIR/liveness-dead.rs:30:11
|
|
|
|
|
|
|
|
|
LL | fn f4(mut x: i32) { //~ ERROR: value passed to `x` is never read
|
|
|
|
| ^
|
2018-12-07 08:15:36 -06:00
|
|
|
|
|
|
|
|
= help: maybe it is overwritten before being read?
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error: value assigned to `x` is never read
|
|
|
|
--> $DIR/liveness-dead.rs:37:5
|
|
|
|
|
|
|
|
|
LL | x = 4; //~ ERROR: value assigned to `x` is never read
|
|
|
|
| ^
|
2018-12-07 08:15:36 -06:00
|
|
|
|
|
|
|
|
= help: maybe it is overwritten before being read?
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error: aborting due to 4 previous errors
|
|
|
|
|