1 error: this expression borrows a reference (`&i32`) that is immediately dereferenced by the compiler
2 --> $DIR/needless_borrow.rs:8:15
4 LL | let _ = x(&&a); // warn
5 | ^^^ help: change this to: `&a`
7 = note: `-D clippy::needless-borrow` implied by `-D warnings`
9 error: this expression borrows a reference (`&mut i32`) that is immediately dereferenced by the compiler
10 --> $DIR/needless_borrow.rs:12:13
12 LL | mut_ref(&mut &mut b); // warn
13 | ^^^^^^^^^^^ help: change this to: `&mut b`
15 error: this expression borrows a reference (`&i32`) that is immediately dereferenced by the compiler
16 --> $DIR/needless_borrow.rs:26:15
19 | ^^^ help: change this to: `&a`
21 error: aborting due to 3 previous errors