summaryrefslogtreecommitdiffstats
path: root/tests/ui/impl-trait/recursive-auto-trait.rs
blob: d7b68144ff6ba60ebe2d2157d527b5ef2429ed7c (plain)
1
2
3
4
5
6
7
8
9
10
// check-pass
fn is_send<T: Send>(_: T) {}
fn foo() -> impl Send {
    if false {
        is_send(foo());
    }
    ()
}

fn main() {}