#![feature(return_position_impl_trait_in_trait)] struct Wrapper(G); trait Foo { fn bar() -> Wrapper; //~^ ERROR `impl Sized` cannot be sent between threads safely } fn main() {}