blob: 742537ffcc43bb8a0f916716000817dbd1ae88cf (
plain)
1
2
3
4
5
6
7
8
9
10
|
#![feature(return_position_impl_trait_in_trait)]
struct Wrapper<G: Send>(G);
trait Foo {
fn bar() -> Wrapper<impl Sized>;
//~^ ERROR `impl Sized` cannot be sent between threads safely
}
fn main() {}
|