bless more

This commit is contained in:
Ralf Jung 2023-07-24 19:42:21 +02:00
parent 5a6c4d7d43
commit 2b16c37b65
2 changed files with 4 additions and 4 deletions

View file

@ -14,7 +14,7 @@ pub fn positives(mut a: usize, b: &mut u32, mut s: S) {
*b = *b; *b = *b;
s = s; s = s;
s.a = s.a; s.a = s.a;
s.b[10] = s.b[5 + 5]; s.b[9] = s.b[5 + 4];
s.c[0][1] = s.c[0][1]; s.c[0][1] = s.c[0][1];
s.b[a] = s.b[a]; s.b[a] = s.b[a];
*s.e = *s.e; *s.e = *s.e;

View file

@ -24,11 +24,11 @@ error: self-assignment of `s.a` to `s.a`
LL | s.a = s.a; LL | s.a = s.a;
| ^^^^^^^^^ | ^^^^^^^^^
error: self-assignment of `s.b[5 + 5]` to `s.b[10]` error: self-assignment of `s.b[5 + 4]` to `s.b[9]`
--> $DIR/self_assignment.rs:17:5 --> $DIR/self_assignment.rs:17:5
| |
LL | s.b[10] = s.b[5 + 5]; LL | s.b[9] = s.b[5 + 4];
| ^^^^^^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^^^^^
error: self-assignment of `s.c[0][1]` to `s.c[0][1]` error: self-assignment of `s.c[0][1]` to `s.c[0][1]`
--> $DIR/self_assignment.rs:18:5 --> $DIR/self_assignment.rs:18:5