1 error: variable appears on both sides of an assignment operation
2 --> $DIR/assign_ops2.rs:7:5
7 = note: `-D clippy::misrefactored-assign-op` implied by `-D warnings`
8 help: did you mean `a = a + 1` or `a = a + a + 1`? Consider replacing it with
17 error: variable appears on both sides of an assignment operation
18 --> $DIR/assign_ops2.rs:8:5
23 help: did you mean `a = a + 1` or `a = a + 1 + a`? Consider replacing it with
32 error: variable appears on both sides of an assignment operation
33 --> $DIR/assign_ops2.rs:9:5
38 help: did you mean `a = a - 1` or `a = a - (a - 1)`? Consider replacing it with
47 error: variable appears on both sides of an assignment operation
48 --> $DIR/assign_ops2.rs:10:5
53 help: did you mean `a = a * 99` or `a = a * a * 99`? Consider replacing it with
62 error: variable appears on both sides of an assignment operation
63 --> $DIR/assign_ops2.rs:11:5
68 help: did you mean `a = a * 42` or `a = a * 42 * a`? Consider replacing it with
77 error: variable appears on both sides of an assignment operation
78 --> $DIR/assign_ops2.rs:12:5
83 help: did you mean `a = a / 2` or `a = a / (a / 2)`? Consider replacing it with
92 error: variable appears on both sides of an assignment operation
93 --> $DIR/assign_ops2.rs:13:5
98 help: did you mean `a = a % 5` or `a = a % (a % 5)`? Consider replacing it with
104 LL | a = a % (a % 5);
107 error: variable appears on both sides of an assignment operation
108 --> $DIR/assign_ops2.rs:14:5
113 help: did you mean `a = a & 1` or `a = a & a & 1`? Consider replacing it with
122 error: variable appears on both sides of an assignment operation
123 --> $DIR/assign_ops2.rs:15:5
128 help: did you mean `a = a * a` or `a = a * a * a`? Consider replacing it with
137 error: manual implementation of an assign operation
138 --> $DIR/assign_ops2.rs:52:5
140 LL | buf = buf + cows.clone();
141 | ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `buf += cows.clone()`
143 = note: `-D clippy::assign-op-pattern` implied by `-D warnings`
145 error: aborting due to 10 previous errors