]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/generic-associated-types/generic-associated-type-bounds.rs
3 #![feature(generic_associated_types)]
6 type Y
<'a
> where Self: 'a
;
7 fn m(&self) -> Self::Y
<'_
>;
13 fn m(&self) -> Self::Y
<'_
> {
18 fn f(x
: &impl for<'a
> X
<Y
<'a
> = &'
a ()>) -> &() {
22 fn g
<T
: for<'a
> X
<Y
<'a
> = &'
a ()>>(x
: &T
) -> &() {