2018-08-08 14:28:26 +02:00
|
|
|
error: value assigned to `x` is never read
|
2021-02-28 21:03:36 +01:00
|
|
|
--> $DIR/liveness-dead.rs:9:13
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | let mut x: isize = 3;
|
2021-02-28 21:03:36 +01:00
|
|
|
| ^
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2022-09-18 19:55:36 +04:00
|
|
|
= help: maybe it is overwritten before being read?
|
2020-01-22 23:57:38 +00:00
|
|
|
note: the lint level is defined here
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/liveness-dead.rs:2:9
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
LL | #![deny(unused_assignments)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: value assigned to `x` is never read
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/liveness-dead.rs:17:5
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | x = 4;
|
2018-08-08 14:28:26 +02:00
|
|
|
| ^
|
2018-12-07 14:15:36 +00:00
|
|
|
|
|
|
|
|
= help: maybe it is overwritten before being read?
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
error: value passed to `x` is never read
|
2021-02-28 21:03:36 +01:00
|
|
|
--> $DIR/liveness-dead.rs:20:11
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | fn f4(mut x: i32) {
|
2021-02-28 21:03:36 +01:00
|
|
|
| ^
|
2018-12-07 14:15:36 +00:00
|
|
|
|
|
|
|
|
= help: maybe it is overwritten before being read?
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
error: value assigned to `x` is never read
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/liveness-dead.rs:27:5
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | x = 4;
|
2018-08-08 14:28:26 +02:00
|
|
|
| ^
|
2018-12-07 14:15:36 +00:00
|
|
|
|
|
|
|
|
= help: maybe it is overwritten before being read?
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
error: aborting due to 4 previous errors
|
|
|
|
|