// Found in a crater run on #118553 pub trait Debug {} pub trait Service { type Input; type Output; type Error; } pub struct ServiceChain { prev: P, service: S, } impl> Service for ServiceChain where P::Error: 'static, S::Error: 'static, { type Input = P::Input; type Output = S::Output; type Error = (); } pub struct ServiceChainBuilder> { chain: ServiceChain, } impl> ServiceChainBuilder { pub fn next>( self, ) -> ServiceChainBuilder, NS> { //~^ the associated type //~| the associated type //~| the associated type panic!(); } } fn main() {}