rust-clippy/tests/ui/temporary_assignment.stderr
2017-02-08 14:58:07 +01:00

20 lines
469 B
Text

error: assignment to temporary
--> $DIR/temporary_assignment.rs:29:5
|
29 | Struct { field: 0 }.field = 1;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: lint level defined here
--> $DIR/temporary_assignment.rs:4:9
|
4 | #![deny(temporary_assignment)]
| ^^^^^^^^^^^^^^^^^^^^
error: assignment to temporary
--> $DIR/temporary_assignment.rs:30:5
|
30 | (0, 0).0 = 1;
| ^^^^^^^^^^^^
error: aborting due to 2 previous errors