rust-clippy/tests/ui/needless_borrowed_ref.stderr

11 lines
407 B
Text
Raw Normal View History

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