]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/temporary_assignment.stderr
Merge commit '4a053f206fd6799a25823c307f7d7f9d897be118' into sync-rustfmt-subtree
[rust.git] / src / tools / clippy / tests / ui / temporary_assignment.stderr
1 error: assignment to temporary
2   --> $DIR/temporary_assignment.rs:48:5
3    |
4 LL |     Struct { field: 0 }.field = 1;
5    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6    |
7    = note: `-D clippy::temporary-assignment` implied by `-D warnings`
8
9 error: assignment to temporary
10   --> $DIR/temporary_assignment.rs:49:5
11    |
12 LL | /     MultiStruct {
13 LL | |         structure: Struct { field: 0 },
14 LL | |     }
15 LL | |     .structure
16 LL | |     .field = 1;
17    | |______________^
18
19 error: assignment to temporary
20   --> $DIR/temporary_assignment.rs:54:5
21    |
22 LL |     ArrayStruct { array: [0] }.array[0] = 1;
23    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
24
25 error: assignment to temporary
26   --> $DIR/temporary_assignment.rs:55:5
27    |
28 LL |     (0, 0).0 = 1;
29    |     ^^^^^^^^^^^^
30
31 error: aborting due to 4 previous errors
32