2018-08-08 07:28:26 -05:00
|
|
|
error: variable does not need to be mutable
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/unused-mut-issue-50343.rs:4:33
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | vec![(42, 22)].iter().map(|(mut x, _y)| ()).count();
|
|
|
|
| ----^
|
|
|
|
| |
|
|
|
|
| help: remove this `mut`
|
|
|
|
|
|
|
|
|
note: lint level defined here
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/unused-mut-issue-50343.rs:1:9
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | #![deny(unused_mut)]
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|