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

17 lines
474 B
Plaintext
Raw Normal View History

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