mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-01 19:23:50 +00:00
15 lines
345 B
Plaintext
15 lines
345 B
Plaintext
error: assignment to temporary
|
|
--> $DIR/temporary_assignment.rs:29:5
|
|
|
|
|
29 | Struct { field: 0 }.field = 1;
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: `-D temporary-assignment` implied by `-D warnings`
|
|
|
|
error: assignment to temporary
|
|
--> $DIR/temporary_assignment.rs:30:5
|
|
|
|
|
30 | (0, 0).0 = 1;
|
|
| ^^^^^^^^^^^^
|
|
|