]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/op_ref.stderr
Auto merge of #6336 - giraffate:sync-from-rust, r=flip1995
[rust.git] / tests / ui / op_ref.stderr
index abe7348622f93088e34616c80512b3f5369b9b64..a3a9adcc483551aa12d80c7423fa241625234e56 100644 (file)
@@ -1,22 +1,22 @@
 error: needlessly taken reference of both operands
-  --> $DIR/op_ref.rs:19:15
+  --> $DIR/op_ref.rs:12:15
    |
-19 |     let foo = &5 - &6;
+LL |     let foo = &5 - &6;
    |               ^^^^^^^
    |
    = note: `-D clippy::op-ref` implied by `-D warnings`
 help: use the values directly
    |
-19 |     let foo = 5 - 6;
+LL |     let foo = 5 - 6;
    |               ^   ^
 
 error: taken reference of right operand
-  --> $DIR/op_ref.rs:27:8
+  --> $DIR/op_ref.rs:57:13
    |
-27 |     if b < &a {
-   |        ^^^^--
-   |            |
-   |            help: use the right value directly: `a`
+LL |     let z = x & &y;
+   |             ^^^^--
+   |                 |
+   |                 help: use the right value directly: `y`
 
 error: aborting due to 2 previous errors