mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 00:03:43 +00:00
11 lines
407 B
Plaintext
11 lines
407 B
Plaintext
error: this pattern takes a reference on something that is being de-referenced
|
|
--> $DIR/needless_borrowed_ref.rs:7:34
|
|
|
|
|
LL | let _ = v.iter_mut().filter(|&ref a| a.is_empty());
|
|
| ^^^^^^ 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
|
|
|