//@ compile-flags: -Znext-solver //@ check-pass // Regression test for #119608. pub trait Foo {} pub trait Bar { type Assoc; } impl Bar for T { type Assoc = T; } pub fn foo(_input: ::Assoc) where I: Bar, ::Assoc: Foo, { } fn main() {}