]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/self_assignment.stderr
Merge commit '7bfc26ec8e7a454786668e7e52ffe527fc649735' into clippyup
[rust.git] / src / tools / clippy / tests / ui / self_assignment.stderr
1 error: self-assignment of `a` to `a`
2   --> $DIR/self_assignment.rs:12:5
3    |
4 LL |     a = a;
5    |     ^^^^^
6    |
7    = note: `-D clippy::self-assignment` implied by `-D warnings`
8
9 error: self-assignment of `*b` to `*b`
10   --> $DIR/self_assignment.rs:13:5
11    |
12 LL |     *b = *b;
13    |     ^^^^^^^
14
15 error: self-assignment of `s` to `s`
16   --> $DIR/self_assignment.rs:14:5
17    |
18 LL |     s = s;
19    |     ^^^^^
20
21 error: self-assignment of `s.a` to `s.a`
22   --> $DIR/self_assignment.rs:15:5
23    |
24 LL |     s.a = s.a;
25    |     ^^^^^^^^^
26
27 error: self-assignment of `s.b[5 + 5]` to `s.b[10]`
28   --> $DIR/self_assignment.rs:16:5
29    |
30 LL |     s.b[10] = s.b[5 + 5];
31    |     ^^^^^^^^^^^^^^^^^^^^
32
33 error: self-assignment of `s.c[0][1]` to `s.c[0][1]`
34   --> $DIR/self_assignment.rs:17:5
35    |
36 LL |     s.c[0][1] = s.c[0][1];
37    |     ^^^^^^^^^^^^^^^^^^^^^
38
39 error: self-assignment of `s.b[a]` to `s.b[a]`
40   --> $DIR/self_assignment.rs:18:5
41    |
42 LL |     s.b[a] = s.b[a];
43    |     ^^^^^^^^^^^^^^^
44
45 error: self-assignment of `*s.e` to `*s.e`
46   --> $DIR/self_assignment.rs:19:5
47    |
48 LL |     *s.e = *s.e;
49    |     ^^^^^^^^^^^
50
51 error: self-assignment of `s.b[10 + a]` to `s.b[a + 10]`
52   --> $DIR/self_assignment.rs:20:5
53    |
54 LL |     s.b[a + 10] = s.b[10 + a];
55    |     ^^^^^^^^^^^^^^^^^^^^^^^^^
56
57 error: self-assignment of `t.1` to `t.1`
58   --> $DIR/self_assignment.rs:23:5
59    |
60 LL |     t.1 = t.1;
61    |     ^^^^^^^^^
62
63 error: self-assignment of `(t.0)` to `t.0`
64   --> $DIR/self_assignment.rs:24:5
65    |
66 LL |     t.0 = (t.0);
67    |     ^^^^^^^^^^^
68
69 error: aborting due to 11 previous errors
70