summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc-ui/issues/issue-110900.rs
blob: e3154baf860a32ed360b09c49c286771a17db35e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// check-pass

#![crate_type="lib"]
#![feature(associated_type_bounds)]

trait A<'a> {}
trait B<'b> {}

trait C<'c>: for<'a> A<'a> + for<'b> B<'b> {
    type As;
}

trait E<'e> {
    type As;
}
trait F<'f>: for<'a> A<'a> + for<'e> E<'e> {}
struct G<T>
where
    T: for<'l, 'i> H<'l, 'i, As: for<'a> A<'a> + 'i>
{
    t: std::marker::PhantomData<T>,
}

trait I<'a, 'b, 'c> {
    type As;
}

trait H<'d, 'e>: for<'f> I<'d, 'f, 'e> + 'd {}