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();
22 //~^ERROR borrow of moved value
24 //~^ERROR borrow of moved value
28 let x = "hello".to_owned().into_boxed_str();
32 //~^ERROR borrow of moved value
34 //~^ERROR borrow of moved value
38 let x = "hello".to_owned().into_boxed_str();
41 //~^ERROR borrow of moved value