]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/needless_borrow.stderr
Add desugaring mark to while loop
[rust.git] / src / tools / clippy / tests / ui / needless_borrow.stderr
1 error: this expression borrows a reference (`&i32`) that is immediately dereferenced by the compiler
2   --> $DIR/needless_borrow.rs:8:15
3    |
4 LL |     let _ = x(&&a); // warn
5    |               ^^^ help: change this to: `&a`
6    |
7    = note: `-D clippy::needless-borrow` implied by `-D warnings`
8
9 error: this expression borrows a reference (`&mut i32`) that is immediately dereferenced by the compiler
10   --> $DIR/needless_borrow.rs:12:13
11    |
12 LL |     mut_ref(&mut &mut b); // warn
13    |             ^^^^^^^^^^^ help: change this to: `&mut b`
14
15 error: this expression borrows a reference (`&i32`) that is immediately dereferenced by the compiler
16   --> $DIR/needless_borrow.rs:26:15
17    |
18 LL |         46 => &&a,
19    |               ^^^ help: change this to: `&a`
20
21 error: aborting due to 3 previous errors
22