]> git.lizzy.rs Git - rust.git/blob - clippy_tests/examples/assign_ops2.stderr
b5a6ca9233d58506db1e4ce7cf79ce853548e9c1
[rust.git] / clippy_tests / examples / assign_ops2.stderr
1 error: variable appears on both sides of an assignment operation
2  --> 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  --> assign_ops2.rs:9:5
11   |
12 9 |     a += 1 + a;
13   |     ^^^^^^^^^^ help: replace it with `a += 1`
14   |
15   = note: `-D misrefactored-assign-op` implied by `-D warnings`
16
17 error: variable appears on both sides of an assignment operation
18   --> assign_ops2.rs:10:5
19    |
20 10 |     a -= a - 1;
21    |     ^^^^^^^^^^ help: replace it with `a -= 1`
22    |
23    = note: `-D misrefactored-assign-op` implied by `-D warnings`
24
25 error: variable appears on both sides of an assignment operation
26   --> assign_ops2.rs:11:5
27    |
28 11 |     a *= a * 99;
29    |     ^^^^^^^^^^^ help: replace it with `a *= 99`
30    |
31    = note: `-D misrefactored-assign-op` implied by `-D warnings`
32
33 error: variable appears on both sides of an assignment operation
34   --> assign_ops2.rs:12:5
35    |
36 12 |     a *= 42 * a;
37    |     ^^^^^^^^^^^ help: replace it with `a *= 42`
38    |
39    = note: `-D misrefactored-assign-op` implied by `-D warnings`
40
41 error: variable appears on both sides of an assignment operation
42   --> assign_ops2.rs:13:5
43    |
44 13 |     a /= a / 2;
45    |     ^^^^^^^^^^ help: replace it with `a /= 2`
46    |
47    = note: `-D misrefactored-assign-op` implied by `-D warnings`
48
49 error: variable appears on both sides of an assignment operation
50   --> assign_ops2.rs:14:5
51    |
52 14 |     a %= a % 5;
53    |     ^^^^^^^^^^ help: replace it with `a %= 5`
54    |
55    = note: `-D misrefactored-assign-op` implied by `-D warnings`
56
57 error: variable appears on both sides of an assignment operation
58   --> assign_ops2.rs:15:5
59    |
60 15 |     a &= a & 1;
61    |     ^^^^^^^^^^ help: replace it with `a &= 1`
62    |
63    = note: `-D misrefactored-assign-op` implied by `-D warnings`
64
65 error: aborting due to previous error(s)
66
67 error: Could not compile `clippy_tests`.
68
69 To learn more, run the command again with --verbose.