]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | error: variable does not need to be mutable |
48663c56 | 2 | --> $DIR/unused-mut-issue-50343.rs:4:33 |
b7449926 XL |
3 | | |
4 | LL | vec![(42, 22)].iter().map(|(mut x, _y)| ()).count(); | |
5 | | ----^ | |
6 | | | | |
7 | | help: remove this `mut` | |
8 | | | |
74b04a01 | 9 | note: the lint level is defined here |
48663c56 | 10 | --> $DIR/unused-mut-issue-50343.rs:1:9 |
b7449926 XL |
11 | | |
12 | LL | #![deny(unused_mut)] | |
13 | | ^^^^^^^^^^ | |
14 | ||
15 | error: aborting due to previous error | |
16 |