]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/assign_ops.stderr
Rollup merge of #101229 - mgeisler:link-try-operator, r=thomcc
[rust.git] / src / tools / clippy / tests / ui / assign_ops.stderr
1 error: manual implementation of an assign operation
2   --> $DIR/assign_ops.rs:9:5
3    |
4 LL |     a = a + 1;
5    |     ^^^^^^^^^ help: replace it with: `a += 1`
6    |
7    = note: `-D clippy::assign-op-pattern` implied by `-D warnings`
8
9 error: manual implementation of an assign operation
10   --> $DIR/assign_ops.rs:10:5
11    |
12 LL |     a = 1 + a;
13    |     ^^^^^^^^^ help: replace it with: `a += 1`
14
15 error: manual implementation of an assign operation
16   --> $DIR/assign_ops.rs:11:5
17    |
18 LL |     a = a - 1;
19    |     ^^^^^^^^^ help: replace it with: `a -= 1`
20
21 error: manual implementation of an assign operation
22   --> $DIR/assign_ops.rs:12:5
23    |
24 LL |     a = a * 99;
25    |     ^^^^^^^^^^ help: replace it with: `a *= 99`
26
27 error: manual implementation of an assign operation
28   --> $DIR/assign_ops.rs:13:5
29    |
30 LL |     a = 42 * a;
31    |     ^^^^^^^^^^ help: replace it with: `a *= 42`
32
33 error: manual implementation of an assign operation
34   --> $DIR/assign_ops.rs:14:5
35    |
36 LL |     a = a / 2;
37    |     ^^^^^^^^^ help: replace it with: `a /= 2`
38
39 error: manual implementation of an assign operation
40   --> $DIR/assign_ops.rs:15:5
41    |
42 LL |     a = a % 5;
43    |     ^^^^^^^^^ help: replace it with: `a %= 5`
44
45 error: manual implementation of an assign operation
46   --> $DIR/assign_ops.rs:16:5
47    |
48 LL |     a = a & 1;
49    |     ^^^^^^^^^ help: replace it with: `a &= 1`
50
51 error: manual implementation of an assign operation
52   --> $DIR/assign_ops.rs:22:5
53    |
54 LL |     s = s + "bla";
55    |     ^^^^^^^^^^^^^ help: replace it with: `s += "bla"`
56
57 error: manual implementation of an assign operation
58   --> $DIR/assign_ops.rs:26:5
59    |
60 LL |     a = a + Wrapping(1u32);
61    |     ^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `a += Wrapping(1u32)`
62
63 error: manual implementation of an assign operation
64   --> $DIR/assign_ops.rs:28:5
65    |
66 LL |     v[0] = v[0] + v[1];
67    |     ^^^^^^^^^^^^^^^^^^ help: replace it with: `v[0] += v[1]`
68
69 error: aborting due to 11 previous errors
70