]> git.lizzy.rs Git - rust.git/blob - tests/ui/assign_ops2.stderr
0ff211259c036f16cf525e3b5031540b39973324
[rust.git] / tests / ui / assign_ops2.stderr
1 error: variable appears on both sides of an assignment operation
2  --> $DIR/assign_ops2.rs:8:5
3   |
4 8 |     a += a + 1;
5   |     ^^^^^^^^^^ help: replace it with: `a += 1`
6   |
7   = note: `-D misrefactored-assign-op` implied by `-D warnings`
8
9 error: variable appears on both sides of an assignment operation
10  --> $DIR/assign_ops2.rs:9:5
11   |
12 9 |     a += 1 + a;
13   |     ^^^^^^^^^^ help: replace it with: `a += 1`
14
15 error: variable appears on both sides of an assignment operation
16   --> $DIR/assign_ops2.rs:10:5
17    |
18 10 |     a -= a - 1;
19    |     ^^^^^^^^^^ help: replace it with: `a -= 1`
20
21 error: variable appears on both sides of an assignment operation
22   --> $DIR/assign_ops2.rs:11:5
23    |
24 11 |     a *= a * 99;
25    |     ^^^^^^^^^^^ help: replace it with: `a *= 99`
26
27 error: variable appears on both sides of an assignment operation
28   --> $DIR/assign_ops2.rs:12:5
29    |
30 12 |     a *= 42 * a;
31    |     ^^^^^^^^^^^ help: replace it with: `a *= 42`
32
33 error: variable appears on both sides of an assignment operation
34   --> $DIR/assign_ops2.rs:13:5
35    |
36 13 |     a /= a / 2;
37    |     ^^^^^^^^^^ help: replace it with: `a /= 2`
38
39 error: variable appears on both sides of an assignment operation
40   --> $DIR/assign_ops2.rs:14:5
41    |
42 14 |     a %= a % 5;
43    |     ^^^^^^^^^^ help: replace it with: `a %= 5`
44
45 error: variable appears on both sides of an assignment operation
46   --> $DIR/assign_ops2.rs:15:5
47    |
48 15 |     a &= a & 1;
49    |     ^^^^^^^^^^ help: replace it with: `a &= 1`
50
51 error: aborting due to 8 previous errors
52