9 match S("foo".to_string()) {
10 //~^ ERROR cannot move out of type `S`, which implements the `Drop` trait
16 let S(_s) = S("foo".to_string());
17 //~^ ERROR cannot move out of type `S`, which implements the `Drop` trait
20 fn move_in_fn_arg(S(_s): S) {
21 //~^ ERROR cannot move out of type `S`, which implements the `Drop` trait