// Regression test for #137329 trait B { type C<'a>; fn d() -> F { todo!() } } struct F { h: Option<::C>, //~^ ERROR missing generics for associated type `B::C` } fn main() {}