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: assignment to temporary
32 --> $DIR/temporary_assignment.rs:56:5
37 error: assignment to temporary
38 --> $DIR/temporary_assignment.rs:57:5
43 error: assignment to temporary
44 --> $DIR/temporary_assignment.rs:58:5
46 LL | C.structure.field = 2;
47 | ^^^^^^^^^^^^^^^^^^^^^
49 error: assignment to temporary
50 --> $DIR/temporary_assignment.rs:59:5
55 error: aborting due to 8 previous errors