]> git.lizzy.rs Git - rust.git/blob - tests/ui/generic-associated-types/issue-93262.rs
Merge commit '1d8491b120223272b13451fc81265aa64f7f4d5b' into sync-from-rustfmt
[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() {}