rust/src/test/ui/nll/unused-mut-issue-50343.stderr
2018-12-25 21:08:33 -07:00

17 lines
467 B
Plaintext

error: variable does not need to be mutable
--> $DIR/unused-mut-issue-50343.rs:5:33
|
LL | vec![(42, 22)].iter().map(|(mut x, _y)| ()).count();
| ----^
| |
| help: remove this `mut`
|
note: lint level defined here
--> $DIR/unused-mut-issue-50343.rs:2:9
|
LL | #![deny(unused_mut)]
| ^^^^^^^^^^
error: aborting due to previous error