//@ revisions: current next //@ ignore-compare-mode-next-solver (explicit revisions) //@[next] compile-flags: -Znext-solver //@ check-pass // A regression test for an edge case of candidate selection // in the old trait solver, see #132325 for more details. trait Trait {} impl Trait for () {} fn impls_trait, U>(_: T) -> U { todo!() } fn foo() -> u32 where (): Trait, (): Trait, { impls_trait(()) } fn main() {}