1 error: assignment to temporary
2 --> $DIR/temporary_assignment.rs:56:5
4 LL | Struct { field: 0 }.field = 1;
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7 = note: `-D clippy::temporary-assignment` implied by `-D warnings`
9 error: assignment to temporary
10 --> $DIR/temporary_assignment.rs:57:5
13 LL | | structure: Struct { field: 0 },
19 error: assignment to temporary
20 --> $DIR/temporary_assignment.rs:62:5
22 LL | ArrayStruct { array: [0] }.array[0] = 1;
23 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
25 error: assignment to temporary
26 --> $DIR/temporary_assignment.rs:63:5
31 error: assignment to temporary
32 --> $DIR/temporary_assignment.rs:65:5
37 error: assignment to temporary
38 --> $DIR/temporary_assignment.rs:66:5
43 error: assignment to temporary
44 --> $DIR/temporary_assignment.rs:67:5
46 LL | C.structure.field = 2;
47 | ^^^^^^^^^^^^^^^^^^^^^
49 error: assignment to temporary
50 --> $DIR/temporary_assignment.rs:68:5
55 error: aborting due to 8 previous errors