about summary refs log tree commit diff
path: root/tests/ui/impl-trait/recursive-auto-trait.rs
blob: 3f759837cbf44c730edc644b6ea65efcd1552c37 (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() {}