1 // Regression test for #62988
5 #![feature(type_alias_impl_trait)]
9 fn ret(&self) -> Self::AssocType;
13 type AssocType = impl Send;
14 fn ret(&self) -> Self::AssocType {
19 impl<'a> MyTrait for &'a () {
20 type AssocType = impl Send;
21 fn ret(&self) -> Self::AssocType {
26 trait MyLifetimeTrait<'a> {
27 type AssocType: Send + 'a;
28 fn ret(&self) -> Self::AssocType;
31 impl<'a> MyLifetimeTrait<'a> for &'a () {
32 type AssocType = impl Send + 'a;
33 fn ret(&self) -> Self::AssocType {