2020-11-04 10:32:52 -06:00
|
|
|
warning: value assigned to `a` is never read
|
2021-11-03 01:50:57 -05:00
|
|
|
--> $DIR/warn-unused-duplication.rs:9:6
|
2020-11-04 10:32:52 -06:00
|
|
|
|
|
|
|
|
LL | (a, a) = (0, 1);
|
|
|
|
| ^
|
|
|
|
|
|
2022-09-18 10:55:36 -05:00
|
|
|
= help: maybe it is overwritten before being read?
|
2020-11-04 10:32:52 -06:00
|
|
|
note: the lint level is defined here
|
2021-11-03 01:50:57 -05:00
|
|
|
--> $DIR/warn-unused-duplication.rs:3:9
|
2020-11-04 10:32:52 -06:00
|
|
|
|
|
|
|
|
LL | #![warn(unused_assignments)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
warning: 1 warning emitted
|
|
|
|
|