summaryrefslogtreecommitdiffstats
path: root/tests/ui/nll/unused-mut-issue-50343.stderr
blob: cb02d76205c7f22800092c2aae6b9d727a545b2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
error: variable does not need to be mutable
  --> $DIR/unused-mut-issue-50343.rs:7:33
   |
LL |     vec![(42, 22)].iter().map(|(mut x, _y)| ()).count();
   |                                 ----^
   |                                 |
   |                                 help: remove this `mut`
   |
note: the lint level is defined here
  --> $DIR/unused-mut-issue-50343.rs:3:9
   |
LL | #![deny(unused_mut)]
   |         ^^^^^^^^^^

error: aborting due to previous error