]> git.lizzy.rs Git - rust.git/blob - tests/ui/assign_ops2.stderr
Merge pull request #1747 from Manishearth/mut_fp
[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: lint level defined here
8  --> $DIR/assign_ops2.rs:5:8
9   |
10 5 | #[deny(misrefactored_assign_op)]
11   |        ^^^^^^^^^^^^^^^^^^^^^^^
12
13 error: variable appears on both sides of an assignment operation
14  --> $DIR/assign_ops2.rs:9:5
15   |
16 9 |     a += 1 + a;
17   |     ^^^^^^^^^^ help: replace it with `a += 1`
18
19 error: variable appears on both sides of an assignment operation
20   --> $DIR/assign_ops2.rs:10:5
21    |
22 10 |     a -= a - 1;
23    |     ^^^^^^^^^^ help: replace it with `a -= 1`
24
25 error: variable appears on both sides of an assignment operation
26   --> $DIR/assign_ops2.rs:11:5
27    |
28 11 |     a *= a * 99;
29    |     ^^^^^^^^^^^ help: replace it with `a *= 99`
30
31 error: variable appears on both sides of an assignment operation
32   --> $DIR/assign_ops2.rs:12:5
33    |
34 12 |     a *= 42 * a;
35    |     ^^^^^^^^^^^ help: replace it with `a *= 42`
36
37 error: variable appears on both sides of an assignment operation
38   --> $DIR/assign_ops2.rs:13:5
39    |
40 13 |     a /= a / 2;
41    |     ^^^^^^^^^^ help: replace it with `a /= 2`
42
43 error: variable appears on both sides of an assignment operation
44   --> $DIR/assign_ops2.rs:14:5
45    |
46 14 |     a %= a % 5;
47    |     ^^^^^^^^^^ help: replace it with `a %= 5`
48
49 error: variable appears on both sides of an assignment operation
50   --> $DIR/assign_ops2.rs:15:5
51    |
52 15 |     a &= a & 1;
53    |     ^^^^^^^^^^ help: replace it with `a &= 1`
54
55 error: aborting due to 8 previous errors
56