]> git.proxmox.com Git - rustc.git/blob - src/test/ui/generic-associated-types/issue-93262.rs
New upstream version 1.61.0+dfsg1
[rustc.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() {}