rust-clippy/tests/ui/temporary_assignment.stderr
2018-01-17 14:44:40 +01:00

16 lines
387 B
Text

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;
| ^^^^^^^^^^^^
error: aborting due to 2 previous errors