]> 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 e2b7b7820f317c6a9f3ba4862cc9ec8542da2c40..a3a9adcc483551aa12d80c7423fa241625234e56 100644 (file)
@@ -1,22 +1,22 @@
 error: needlessly taken reference of both operands
-  --> $DIR/op_ref.rs:23:15
+  --> $DIR/op_ref.rs:12:15
    |
-23 |     let foo = &5 - &6;
+LL |     let foo = &5 - &6;
    |               ^^^^^^^
    |
    = note: `-D clippy::op-ref` implied by `-D warnings`
 help: use the values directly
    |
-23 |     let foo = 5 - 6;
+LL |     let foo = 5 - 6;
    |               ^   ^
 
 error: taken reference of right operand
-  --> $DIR/op_ref.rs:31:8
+  --> $DIR/op_ref.rs:57:13
    |
-31 |     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