]> git.lizzy.rs Git - rust.git/blob - tests/ui/op_ref.stderr
Auto merge of #3603 - xfix:random-state-lint, r=phansch
[rust.git] / tests / ui / op_ref.stderr
1 error: needlessly taken reference of both operands
2   --> $DIR/op_ref.rs:19: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:27:8
15    |
16 LL |     if b < &a {
17    |        ^^^^--
18    |            |
19    |            help: use the right value directly: `a`
20
21 error: aborting due to 2 previous errors
22