]> git.lizzy.rs Git - rust.git/blob - tests/ui/generic-associated-types/issue-93262.rs
Rollup merge of #105526 - Xiretza:iter-from-generator-derive, r=scottmcm
[rust.git] / tests / ui / generic-associated-types / issue-93262.rs
1 // check-pass
2
3 pub trait Trait {
4     type Assoc<'a> where Self: 'a;
5 }
6
7 pub trait Foo<T: Trait>
8 where
9     for<'a> T::Assoc<'a>: Clone
10 {}
11
12 pub struct Type;
13
14 impl<T: Trait> Foo<T> for Type
15 where
16     for<'a> T::Assoc<'a>: Clone
17 {}
18
19 fn main() {}