//@ known-bug: #120254 trait Dbg {} struct Foo { input: I, errors: E, } trait Bar: Offset<::Checkpoint> { type Checkpoint; } impl Bar for Foo { type Checkpoint = I::Checkpoint; } trait Offset {} impl Offset< as Bar>::Checkpoint> for Foo {} impl Foo { fn record_err(self, _: ::Checkpoint) -> () {} }