2018-08-08 07:28:26 -05:00
|
|
|
error: value assigned to `x` is never read
|
2019-12-31 17:20:34 -06:00
|
|
|
--> $DIR/liveness-dead.rs:9:9
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | let mut x: isize = 3;
|
2019-12-31 17:20:34 -06:00
|
|
|
| ^^^^^
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2020-01-22 17:57:38 -06:00
|
|
|
note: the lint level is defined here
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/liveness-dead.rs:2:9
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
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
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/liveness-dead.rs:17:5
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | x = 4;
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^
|
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
|
2019-12-31 17:20:34 -06:00
|
|
|
--> $DIR/liveness-dead.rs:20:7
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | fn f4(mut x: i32) {
|
2019-12-31 17:20:34 -06:00
|
|
|
| ^^^^^
|
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
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/liveness-dead.rs:27:5
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | x = 4;
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^
|
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
|
|
|
|
|