1 error: this expression borrows a reference that is immediately dereferenced by the compiler
2 --> $DIR/needless_borrow.rs:13:15
7 = note: `-D needless-borrow` implied by `-D warnings`
9 error: this pattern creates a reference to a reference
10 --> $DIR/needless_borrow.rs:20:17
12 20 | if let Some(ref cake) = Some(&5) {}
15 error: this expression borrows a reference that is immediately dereferenced by the compiler
16 --> $DIR/needless_borrow.rs:27:15
21 error: this pattern creates a reference to a reference
22 --> $DIR/needless_borrow.rs:50:31
24 50 | let _ = v.iter().filter(|&ref a| a.is_empty());
27 error: aborting due to 4 previous errors