]> git.lizzy.rs Git - rust.git/blob - tests/ui/op_ref.stderr
Add license header to Rust files
[rust.git] / tests / ui / op_ref.stderr
1 error: needlessly taken reference of both operands
2   --> $DIR/op_ref.rs:23:15
3    |
4 23 |     let foo = &5 - &6;
5    |               ^^^^^^^
6    |
7    = note: `-D clippy::op-ref` implied by `-D warnings`
8 help: use the values directly
9    |
10 23 |     let foo = 5 - 6;
11    |               ^   ^
12
13 error: taken reference of right operand
14   --> $DIR/op_ref.rs:31:8
15    |
16 31 |     if b < &a {
17    |        ^^^^--
18    |            |
19    |            help: use the right value directly: `a`
20
21 error: aborting due to 2 previous errors
22