]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/assign_ops2.stderr
Auto merge of #4478 - tsurai:master, r=flip1995
[rust.git] / tests / ui / assign_ops2.stderr
index 99983c0d054e4fbf8a35f44928d5a1cab47f14d3..872d6e0d7347323960197ff301bb629c62d42a5e 100644 (file)
@@ -1,5 +1,5 @@
 error: variable appears on both sides of an assignment operation
-  --> $DIR/assign_ops2.rs:14:5
+  --> $DIR/assign_ops2.rs:5:5
    |
 LL |     a += a + 1;
    |     ^^^^^^^^^^
@@ -15,7 +15,7 @@ LL |     a = a + a + 1;
    |     ^^^^^^^^^^^^^
 
 error: variable appears on both sides of an assignment operation
-  --> $DIR/assign_ops2.rs:15:5
+  --> $DIR/assign_ops2.rs:6:5
    |
 LL |     a += 1 + a;
    |     ^^^^^^^^^^
@@ -29,7 +29,7 @@ LL |     a = a + 1 + a;
    |     ^^^^^^^^^^^^^
 
 error: variable appears on both sides of an assignment operation
-  --> $DIR/assign_ops2.rs:16:5
+  --> $DIR/assign_ops2.rs:7:5
    |
 LL |     a -= a - 1;
    |     ^^^^^^^^^^
@@ -43,7 +43,7 @@ LL |     a = a - (a - 1);
    |     ^^^^^^^^^^^^^^^
 
 error: variable appears on both sides of an assignment operation
-  --> $DIR/assign_ops2.rs:17:5
+  --> $DIR/assign_ops2.rs:8:5
    |
 LL |     a *= a * 99;
    |     ^^^^^^^^^^^
@@ -57,7 +57,7 @@ LL |     a = a * a * 99;
    |     ^^^^^^^^^^^^^^
 
 error: variable appears on both sides of an assignment operation
-  --> $DIR/assign_ops2.rs:18:5
+  --> $DIR/assign_ops2.rs:9:5
    |
 LL |     a *= 42 * a;
    |     ^^^^^^^^^^^
@@ -71,7 +71,7 @@ LL |     a = a * 42 * a;
    |     ^^^^^^^^^^^^^^
 
 error: variable appears on both sides of an assignment operation
-  --> $DIR/assign_ops2.rs:19:5
+  --> $DIR/assign_ops2.rs:10:5
    |
 LL |     a /= a / 2;
    |     ^^^^^^^^^^
@@ -85,7 +85,7 @@ LL |     a = a / (a / 2);
    |     ^^^^^^^^^^^^^^^
 
 error: variable appears on both sides of an assignment operation
-  --> $DIR/assign_ops2.rs:20:5
+  --> $DIR/assign_ops2.rs:11:5
    |
 LL |     a %= a % 5;
    |     ^^^^^^^^^^
@@ -99,7 +99,7 @@ LL |     a = a % (a % 5);
    |     ^^^^^^^^^^^^^^^
 
 error: variable appears on both sides of an assignment operation
-  --> $DIR/assign_ops2.rs:21:5
+  --> $DIR/assign_ops2.rs:12:5
    |
 LL |     a &= a & 1;
    |     ^^^^^^^^^^
@@ -113,7 +113,7 @@ LL |     a = a & a & 1;
    |     ^^^^^^^^^^^^^
 
 error: variable appears on both sides of an assignment operation
-  --> $DIR/assign_ops2.rs:22:5
+  --> $DIR/assign_ops2.rs:13:5
    |
 LL |     a *= a * a;
    |     ^^^^^^^^^^
@@ -127,7 +127,7 @@ LL |     a = a * a * a;
    |     ^^^^^^^^^^^^^
 
 error: manual implementation of an assign operation
-  --> $DIR/assign_ops2.rs:59:5
+  --> $DIR/assign_ops2.rs:50:5
    |
 LL |     buf = buf + cows.clone();
    |     ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `buf += cows.clone()`