1 #![feature(unsized_locals, unsized_fn_params)]
2 //~^ WARN the feature `unsized_locals` is incomplete
5 fn foo(self) -> String;
9 fn foo(self) -> String {
14 fn drop_unsized<T: ?Sized>(_: T) {}
18 let x = "hello".to_owned().into_boxed_str();
21 drop_unsized(y); //~ERROR use of moved value
25 let x = "hello".to_owned().into_boxed_str();
27 drop_unsized(x); //~ERROR use of moved value
31 let x = "hello".to_owned().into_boxed_str();
33 let _y = *x; //~ERROR use of moved value
37 let x = "hello".to_owned().into_boxed_str();
40 y.foo(); //~ERROR use of moved value
44 let x = "hello".to_owned().into_boxed_str();
46 x.foo(); //~ERROR use of moved value
50 let x = "hello".to_owned().into_boxed_str();
52 let _y = *x; //~ERROR use of moved value