blob: 21f51907b5e7cdb0c2431c5bafac5f6fd05d5605 [file] [edit]
error[E0509]: cannot move out of type `Thing`, which implements the `Drop` trait
--> $DIR/invalid-suggestions-destructuring-assignment-drop.rs:12:34
|
LL | Thing(*&mut String::new()) = Thing(String::new());
| ------------------- ^^^^^^^^^^^^^^^^^^^^ cannot move out of here
| |
| data moved here because the place has type `String`, which does not implement the `Copy` trait
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0509`.