]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generic-associated-types/issue-93262.rs
Rollup merge of #95446 - notseanray:master, r=Mark-Simulacrum
[rust.git] / src / test / ui / generic-associated-types / issue-93262.rs
1 // check-pass
2
3 #![feature(generic_associated_types)]
4
5 pub trait Trait {
6     type Assoc<'a> where Self: 'a;
7 }
8
9 pub trait Foo<T: Trait>
10 where
11     for<'a> T::Assoc<'a>: Clone
12 {}
13
14 pub struct Type;
15
16 impl<T: Trait> Foo<T> for Type
17 where
18     for<'a> T::Assoc<'a>: Clone
19 {}
20
21 fn main() {}