11error: variable appears on both sides of an assignment operation
2- --> tests/ui/assign_ops2.rs:10 :5
2+ --> tests/ui/assign_ops2.rs:8 :5
33 |
44LL | a += a + 1;
55 | ^^^^^^^^^^
@@ -16,7 +16,7 @@ LL | a = a + a + 1;
1616 | ~~~~~~~~~~~~~
1717
1818error: variable appears on both sides of an assignment operation
19- --> tests/ui/assign_ops2.rs:13 :5
19+ --> tests/ui/assign_ops2.rs:11 :5
2020 |
2121LL | a += 1 + a;
2222 | ^^^^^^^^^^
@@ -31,7 +31,7 @@ LL | a = a + 1 + a;
3131 | ~~~~~~~~~~~~~
3232
3333error: variable appears on both sides of an assignment operation
34- --> tests/ui/assign_ops2.rs:15 :5
34+ --> tests/ui/assign_ops2.rs:13 :5
3535 |
3636LL | a -= a - 1;
3737 | ^^^^^^^^^^
@@ -46,7 +46,7 @@ LL | a = a - (a - 1);
4646 | ~~~~~~~~~~~~~~~
4747
4848error: variable appears on both sides of an assignment operation
49- --> tests/ui/assign_ops2.rs:17 :5
49+ --> tests/ui/assign_ops2.rs:15 :5
5050 |
5151LL | a *= a * 99;
5252 | ^^^^^^^^^^^
@@ -61,7 +61,7 @@ LL | a = a * a * 99;
6161 | ~~~~~~~~~~~~~~
6262
6363error: variable appears on both sides of an assignment operation
64- --> tests/ui/assign_ops2.rs:19 :5
64+ --> tests/ui/assign_ops2.rs:17 :5
6565 |
6666LL | a *= 42 * a;
6767 | ^^^^^^^^^^^
@@ -76,7 +76,7 @@ LL | a = a * 42 * a;
7676 | ~~~~~~~~~~~~~~
7777
7878error: variable appears on both sides of an assignment operation
79- --> tests/ui/assign_ops2.rs:21 :5
79+ --> tests/ui/assign_ops2.rs:19 :5
8080 |
8181LL | a /= a / 2;
8282 | ^^^^^^^^^^
@@ -91,7 +91,7 @@ LL | a = a / (a / 2);
9191 | ~~~~~~~~~~~~~~~
9292
9393error: variable appears on both sides of an assignment operation
94- --> tests/ui/assign_ops2.rs:23 :5
94+ --> tests/ui/assign_ops2.rs:21 :5
9595 |
9696LL | a %= a % 5;
9797 | ^^^^^^^^^^
@@ -106,7 +106,7 @@ LL | a = a % (a % 5);
106106 | ~~~~~~~~~~~~~~~
107107
108108error: variable appears on both sides of an assignment operation
109- --> tests/ui/assign_ops2.rs:25 :5
109+ --> tests/ui/assign_ops2.rs:23 :5
110110 |
111111LL | a &= a & 1;
112112 | ^^^^^^^^^^
@@ -121,7 +121,7 @@ LL | a = a & a & 1;
121121 | ~~~~~~~~~~~~~
122122
123123error: variable appears on both sides of an assignment operation
124- --> tests/ui/assign_ops2.rs:27 :5
124+ --> tests/ui/assign_ops2.rs:25 :5
125125 |
126126LL | a *= a * a;
127127 | ^^^^^^^^^^
@@ -136,7 +136,7 @@ LL | a = a * a * a;
136136 | ~~~~~~~~~~~~~
137137
138138error: manual implementation of an assign operation
139- --> tests/ui/assign_ops2.rs:65 :5
139+ --> tests/ui/assign_ops2.rs:63 :5
140140 |
141141LL | buf = buf + cows.clone();
142142 | ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `buf += cows.clone()`
0 commit comments