rust/tests/ui/nll/unused-mut-issue-50343.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
474 B
Plaintext
Raw Normal View History

2018-08-08 12:28:26 +00:00
error: variable does not need to be mutable
2020-07-02 05:32:12 +00:00
--> $DIR/unused-mut-issue-50343.rs:7:33
2018-08-08 12:28:26 +00:00
|
LL | vec![(42, 22)].iter().map(|(mut x, _y)| ()).count();
| ----^
| |
| help: remove this `mut`
|
2020-01-22 23:57:38 +00:00
note: the lint level is defined here
2020-07-02 05:32:12 +00:00
--> $DIR/unused-mut-issue-50343.rs:3:9
2018-08-08 12:28:26 +00:00
|
LL | #![deny(unused_mut)]
| ^^^^^^^^^^
error: aborting due to previous error