summaryrefslogtreecommitdiffstats
path: root/src/test/ui/destructuring-assignment/warn-unused-duplication.stderr
blob: 1df7a5f224f4f6324e51a921a02262f53f1fd1cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
warning: value assigned to `a` is never read
  --> $DIR/warn-unused-duplication.rs:9:6
   |
LL |     (a, a) = (0, 1);
   |      ^
   |
note: the lint level is defined here
  --> $DIR/warn-unused-duplication.rs:3:9
   |
LL | #![warn(unused_assignments)]
   |         ^^^^^^^^^^^^^^^^^^
   = help: maybe it is overwritten before being read?

warning: 1 warning emitted