about summary refs log tree commit diff
path: root/tests/ui/impl-trait/in-trait/check-wf-on-non-defaulted-rpitit.rs
blob: 2845b401bd59e3de9d937a200acafd9a963e7552 (plain)
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() {}