2020-12-23 14:38:22 -06:00
|
|
|
warning: value captured by `a` is never read
|
2021-05-21 12:35:49 -05:00
|
|
|
--> $DIR/liveness.rs:24:9
|
2020-12-23 14:38:22 -06:00
|
|
|
|
|
|
|
|
LL | a = 1;
|
|
|
|
| ^
|
|
|
|
|
|
2022-09-18 10:55:36 -05:00
|
|
|
= help: did you mean to capture by reference instead?
|
2020-12-23 14:38:22 -06:00
|
|
|
note: the lint level is defined here
|
|
|
|
--> $DIR/liveness.rs:5:9
|
|
|
|
|
|
|
|
|
LL | #![warn(unused)]
|
|
|
|
| ^^^^^^
|
|
|
|
= note: `#[warn(unused_assignments)]` implied by `#[warn(unused)]`
|
|
|
|
|
|
|
|
warning: unused variable: `a`
|
2021-05-21 12:35:49 -05:00
|
|
|
--> $DIR/liveness.rs:33:9
|
2020-12-23 14:38:22 -06:00
|
|
|
|
|
|
|
|
LL | a += 1;
|
|
|
|
| ^
|
|
|
|
|
|
|
|
|
= help: did you mean to capture by reference instead?
|
2022-09-18 10:55:36 -05:00
|
|
|
= note: `#[warn(unused_variables)]` implied by `#[warn(unused)]`
|
2020-12-23 14:38:22 -06:00
|
|
|
|
|
|
|
warning: value assigned to `a` is never read
|
2021-05-21 12:35:49 -05:00
|
|
|
--> $DIR/liveness.rs:53:9
|
2020-12-23 14:38:22 -06:00
|
|
|
|
|
|
|
|
LL | a += 1;
|
|
|
|
| ^
|
|
|
|
|
|
|
|
|
= help: maybe it is overwritten before being read?
|
|
|
|
|
|
|
|
warning: value assigned to `a` is never read
|
2021-05-21 12:35:49 -05:00
|
|
|
--> $DIR/liveness.rs:77:13
|
2020-12-23 14:38:22 -06:00
|
|
|
|
|
|
|
|
LL | a = Some("d1");
|
|
|
|
| ^
|
|
|
|
|
|
|
|
|
= help: maybe it is overwritten before being read?
|
|
|
|
|
|
|
|
warning: value assigned to `b` is never read
|
2021-05-21 12:35:49 -05:00
|
|
|
--> $DIR/liveness.rs:85:13
|
2020-12-23 14:38:22 -06:00
|
|
|
|
|
|
|
|
LL | b = Some("e1");
|
|
|
|
| ^
|
|
|
|
|
|
|
|
|
= help: maybe it is overwritten before being read?
|
|
|
|
|
|
|
|
warning: value assigned to `b` is never read
|
2021-05-21 12:35:49 -05:00
|
|
|
--> $DIR/liveness.rs:87:13
|
2020-12-23 14:38:22 -06:00
|
|
|
|
|
|
|
|
LL | b = Some("e2");
|
|
|
|
| ^
|
|
|
|
|
|
|
|
|
= help: maybe it is overwritten before being read?
|
|
|
|
|
|
|
|
warning: unused variable: `b`
|
2021-05-21 12:35:49 -05:00
|
|
|
--> $DIR/liveness.rs:85:13
|
2020-12-23 14:38:22 -06:00
|
|
|
|
|
|
|
|
LL | b = Some("e1");
|
|
|
|
| ^
|
|
|
|
|
|
|
|
|
= help: did you mean to capture by reference instead?
|
|
|
|
|
2021-06-27 01:22:46 -05:00
|
|
|
warning: 7 warnings emitted
|
2020-12-23 14:38:22 -06:00
|
|
|
|