1 error: assignment to temporary
2 --> $DIR/temporary_assignment.rs:47: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:48:5
13 LL | | structure: Struct { field: 0 },
19 error: assignment to temporary
20 --> $DIR/temporary_assignment.rs:53:5
22 LL | ArrayStruct { array: [0] }.array[0] = 1;
23 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
25 error: assignment to temporary
26 --> $DIR/temporary_assignment.rs:54:5
31 error: aborting due to 4 previous errors