]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/op_ref.stderr
Add 'src/tools/clippy/' from commit 'd2708873ef711ec8ab45df1e984ecf24a96cd369'
[rust.git] / src / tools / clippy / tests / ui / op_ref.stderr
1 error: needlessly taken reference of both operands
2   --> $DIR/op_ref.rs:12:15
3    |
4 LL |     let foo = &5 - &6;
5    |               ^^^^^^^
6    |
7    = note: `-D clippy::op-ref` implied by `-D warnings`
8 help: use the values directly
9    |
10 LL |     let foo = 5 - 6;
11    |               ^   ^
12
13 error: taken reference of right operand
14   --> $DIR/op_ref.rs:57:13
15    |
16 LL |     let z = x & &y;
17    |             ^^^^--
18    |                 |
19    |                 help: use the right value directly: `y`
20
21 error: aborting due to 2 previous errors
22