]> git.lizzy.rs Git - rust.git/blob - tests/ui/needless_borrow.stderr
Merge remote-tracking branch 'upstream/beta' into backport_remerge
[rust.git] / 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:14:15
3    |
4 LL |     let c = x(&&a);
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 (`&i32`) that is immediately dereferenced by the compiler
10   --> $DIR/needless_borrow.rs:27:15
11    |
12 LL |         46 => &&a,
13    |               ^^^ help: change this to: `&a`
14
15 error: aborting due to 2 previous errors
16