fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

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