mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-24 20:13:24 +00:00
18 lines
431 B
Text
18 lines
431 B
Text
error: assignment to temporary
|
|
--> temporary_assignment.rs:29:5
|
|
|
|
|
29 | Struct { field: 0 }.field = 1;
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: `-D temporary-assignment` implied by `-D warnings`
|
|
|
|
error: assignment to temporary
|
|
--> temporary_assignment.rs:30:5
|
|
|
|
|
30 | (0, 0).0 = 1;
|
|
| ^^^^^^^^^^^^
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
|
To learn more, run the command again with --verbose.
|