about summary refs log tree commit diff
path: root/tests/ui/associated-type-bounds/higher-ranked.rs
blob: a313b54f5b9caba305ddc35ab21cb0b3ef666dfe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//@ check-pass

trait A<'a> {
    type Assoc: ?Sized;
}

impl<'a> A<'a> for () {
    type Assoc = &'a ();
}

fn hello() -> impl for<'a> A<'a, Assoc: Sized> {
    ()
}

fn main() {}