3 #![allow(incomplete_features)]
4 #![feature(unsized_locals, unsized_fn_params)]
7 fn foo(self) -> String {
17 let x = *(Box::new(A) as Box<dyn Foo>);
18 assert_eq!(x.foo(), format!("hello"));
20 // I'm not sure whether we want this to work
21 let x = Box::new(A) as Box<dyn Foo>;
22 assert_eq!(x.foo(), format!("hello"));