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;
| ^^^^^^^^^^
| ^^^^^^^^^^^^^
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;
| ^^^^^^^^^^
| ^^^^^^^^^^^^^
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;
| ^^^^^^^^^^
| ^^^^^^^^^^^^^^^
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;
| ^^^^^^^^^^^
| ^^^^^^^^^^^^^^
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;
| ^^^^^^^^^^^
| ^^^^^^^^^^^^^^
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;
| ^^^^^^^^^^
| ^^^^^^^^^^^^^^^
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;
| ^^^^^^^^^^
| ^^^^^^^^^^^^^^^
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;
| ^^^^^^^^^^
| ^^^^^^^^^^^^^
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;
| ^^^^^^^^^^
| ^^^^^^^^^^^^^
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()`