2017-07-01 05:02:00 -05:00
|
|
|
error: this pattern takes a reference on something that is being de-referenced
|
2019-09-25 07:19:09 -05:00
|
|
|
--> $DIR/needless_borrowed_ref.rs:7:34
|
2018-10-06 11:18:06 -05:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | let _ = v.iter_mut().filter(|&ref a| a.is_empty());
|
2018-10-06 11:18:06 -05:00
|
|
|
| ^^^^^^ help: try removing the `&ref` part and just keep: `a`
|
|
|
|
|
|
|
|
|
= note: `-D clippy::needless-borrowed-reference` implied by `-D warnings`
|
2017-07-01 05:02:00 -05:00
|
|
|
|
2019-09-25 07:19:09 -05:00
|
|
|
error: aborting due to previous error
|
2018-01-16 10:06:27 -06:00
|
|
|
|