1
1
error: 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
3
3
|
4
4
LL | a += a + 1;
5
5
| ^^^^^^^^^^
@@ -16,7 +16,7 @@ LL | a = a + a + 1;
16
16
| ~~~~~~~~~~~~~
17
17
18
18
error: 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
20
20
|
21
21
LL | a += 1 + a;
22
22
| ^^^^^^^^^^
@@ -31,7 +31,7 @@ LL | a = a + 1 + a;
31
31
| ~~~~~~~~~~~~~
32
32
33
33
error: 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
35
35
|
36
36
LL | a -= a - 1;
37
37
| ^^^^^^^^^^
@@ -46,7 +46,7 @@ LL | a = a - (a - 1);
46
46
| ~~~~~~~~~~~~~~~
47
47
48
48
error: 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
50
50
|
51
51
LL | a *= a * 99;
52
52
| ^^^^^^^^^^^
@@ -61,7 +61,7 @@ LL | a = a * a * 99;
61
61
| ~~~~~~~~~~~~~~
62
62
63
63
error: 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
65
65
|
66
66
LL | a *= 42 * a;
67
67
| ^^^^^^^^^^^
@@ -76,7 +76,7 @@ LL | a = a * 42 * a;
76
76
| ~~~~~~~~~~~~~~
77
77
78
78
error: 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
80
80
|
81
81
LL | a /= a / 2;
82
82
| ^^^^^^^^^^
@@ -91,7 +91,7 @@ LL | a = a / (a / 2);
91
91
| ~~~~~~~~~~~~~~~
92
92
93
93
error: 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
95
95
|
96
96
LL | a %= a % 5;
97
97
| ^^^^^^^^^^
@@ -106,7 +106,7 @@ LL | a = a % (a % 5);
106
106
| ~~~~~~~~~~~~~~~
107
107
108
108
error: 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
110
110
|
111
111
LL | a &= a & 1;
112
112
| ^^^^^^^^^^
@@ -121,7 +121,7 @@ LL | a = a & a & 1;
121
121
| ~~~~~~~~~~~~~
122
122
123
123
error: 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
125
125
|
126
126
LL | a *= a * a;
127
127
| ^^^^^^^^^^
@@ -136,7 +136,7 @@ LL | a = a * a * a;
136
136
| ~~~~~~~~~~~~~
137
137
138
138
error: manual implementation of an assign operation
139
- --> tests/ui/assign_ops2.rs:65 :5
139
+ --> tests/ui/assign_ops2.rs:63 :5
140
140
|
141
141
LL | buf = buf + cows.clone();
142
142
| ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `buf += cows.clone()`
0 commit comments