2020-08-28 09:10:16 -05:00
|
|
|
error: self-assignment of `a` to `a`
|
2023-07-02 07:35:19 -05:00
|
|
|
--> $DIR/self_assignment.rs:13:5
|
2020-08-28 09:10:16 -05:00
|
|
|
|
|
|
|
|
LL | a = a;
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
|
= note: `-D clippy::self-assignment` implied by `-D warnings`
|
|
|
|
|
|
|
|
error: self-assignment of `*b` to `*b`
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/self_assignment.rs:16:5
|
2020-08-28 09:10:16 -05:00
|
|
|
|
|
|
|
|
LL | *b = *b;
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: self-assignment of `s` to `s`
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/self_assignment.rs:18:5
|
2020-08-28 09:10:16 -05:00
|
|
|
|
|
|
|
|
LL | s = s;
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
error: self-assignment of `s.a` to `s.a`
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/self_assignment.rs:20:5
|
2020-08-28 09:10:16 -05:00
|
|
|
|
|
|
|
|
LL | s.a = s.a;
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
2023-07-24 12:42:21 -05:00
|
|
|
error: self-assignment of `s.b[5 + 4]` to `s.b[9]`
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/self_assignment.rs:22:5
|
2020-08-28 09:10:16 -05:00
|
|
|
|
|
2023-07-24 12:42:21 -05:00
|
|
|
LL | s.b[9] = s.b[5 + 4];
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
2020-08-28 09:10:16 -05:00
|
|
|
|
|
|
|
error: self-assignment of `s.c[0][1]` to `s.c[0][1]`
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/self_assignment.rs:24:5
|
2020-08-28 09:10:16 -05:00
|
|
|
|
|
|
|
|
LL | s.c[0][1] = s.c[0][1];
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: self-assignment of `s.b[a]` to `s.b[a]`
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/self_assignment.rs:26:5
|
2020-08-28 09:10:16 -05:00
|
|
|
|
|
|
|
|
LL | s.b[a] = s.b[a];
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: self-assignment of `*s.e` to `*s.e`
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/self_assignment.rs:28:5
|
2020-08-28 09:10:16 -05:00
|
|
|
|
|
|
|
|
LL | *s.e = *s.e;
|
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: self-assignment of `s.b[10 + a]` to `s.b[a + 10]`
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/self_assignment.rs:30:5
|
2020-08-28 09:10:16 -05:00
|
|
|
|
|
|
|
|
LL | s.b[a + 10] = s.b[10 + a];
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: self-assignment of `t.1` to `t.1`
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/self_assignment.rs:34:5
|
2020-08-28 09:10:16 -05:00
|
|
|
|
|
|
|
|
LL | t.1 = t.1;
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
error: self-assignment of `(t.0)` to `t.0`
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/self_assignment.rs:36:5
|
2020-08-28 09:10:16 -05:00
|
|
|
|
|
|
|
|
LL | t.0 = (t.0);
|
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: aborting due to 11 previous errors
|
|
|
|
|