summaryrefslogtreecommitdiffstats
path: root/tests/ui/impl-trait/nested-return-type3.rs
blob: 74b4dae22ebfd32a5ee845c1ec3d8834f4bc447e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// check-pass

trait Duh {}

impl Duh for i32 {}

trait Trait {
    type Assoc: Duh;
}

impl<F: Duh> Trait for F {
    type Assoc = F;
}

fn foo() -> impl Trait<Assoc = impl Send> {
    42
}

fn main() {
}