1 2 3 4 5 6 7 8
struct Wrapper<G: Send>(G); trait Foo { fn bar() -> Wrapper<impl Sized>; //~^ ERROR `impl Sized` cannot be sent between threads safely } fn main() {}