mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-23 21:23:56 +00:00
16 lines
395 B
Text
16 lines
395 B
Text
error: assignment to temporary
|
|
--> $DIR/temporary_assignment.rs:39:5
|
|
|
|
|
LL | Struct { field: 0 }.field = 1;
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: `-D clippy::temporary-assignment` implied by `-D warnings`
|
|
|
|
error: assignment to temporary
|
|
--> $DIR/temporary_assignment.rs:40:5
|
|
|
|
|
LL | (0, 0).0 = 1;
|
|
| ^^^^^^^^^^^^
|
|
|
|
error: aborting due to 2 previous errors
|
|
|