// check-pass #![feature(impl_trait_in_assoc_type)] pub trait AssociatedImpl { type ImplTrait; fn f() -> Self::ImplTrait; } struct S(T); trait Associated { type A; } impl<'a, T: Associated> AssociatedImpl for S { type ImplTrait = impl core::fmt::Debug; fn f() -> Self::ImplTrait { () } } fn main() {}