9 match S("foo".to_string()) {
10 //~^ ERROR cannot move out of type `S`, which implements the `Drop` trait
16 let S(ref _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(ref _s): S) {
21 //~^ ERROR cannot move out of type `S`, which implements the `Drop` trait