]> 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 956e2ee754c9479daed50a29f684db5951852630..a3a9adcc483551aa12d80c7423fa241625234e56 100644 (file)
@@ -1,5 +1,5 @@
 error: needlessly taken reference of both operands
-  --> $DIR/op_ref.rs:19:15
+  --> $DIR/op_ref.rs:12:15
    |
 LL |     let foo = &5 - &6;
    |               ^^^^^^^
@@ -11,12 +11,12 @@ LL |     let foo = 5 - 6;
    |               ^   ^
 
 error: taken reference of right operand
-  --> $DIR/op_ref.rs:27:8
+  --> $DIR/op_ref.rs:57:13
    |
-LL |     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