fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
889 B34 linesraw
1error: assignment to temporary
2  --> $DIR/temporary_assignment.rs:48:5
3   |
4LL |     Struct { field: 0 }.field = 1;
5   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6   |
7   = note: `-D clippy::temporary-assignment` implied by `-D warnings`
8   = help: to override `-D warnings` add `#[allow(clippy::temporary_assignment)]`
9
10error: assignment to temporary
11  --> $DIR/temporary_assignment.rs:51:5
12   |
13LL | /     MultiStruct {
14LL | |
15LL | |         structure: Struct { field: 0 },
16LL | |     }
17LL | |     .structure
18LL | |     .field = 1;
19   | |______________^
20
21error: assignment to temporary
22  --> $DIR/temporary_assignment.rs:57:5
23   |
24LL |     ArrayStruct { array: [0] }.array[0] = 1;
25   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
26
27error: assignment to temporary
28  --> $DIR/temporary_assignment.rs:59:5
29   |
30LL |     (0, 0).0 = 1;
31   |     ^^^^^^^^^^^^
32
33error: aborting due to 4 previous errors
34