7 match S("foo".to_string()) {
8 //~^ ERROR cannot move out of type `S`, which implements the `Drop` trait
14 let S(_s) = S("foo".to_string());
15 //~^ ERROR cannot move out of type `S`, which implements the `Drop` trait
18 fn move_in_fn_arg(S(_s): S) {
19 //~^ ERROR cannot move out of type `S`, which implements the `Drop` trait