//@ revisions: current next //@ ignore-compare-mode-next-solver (explicit revisions) //@[next] compile-flags: -Znext-solver //@ check-pass // Make sure we prefer the `I::IntoIterator: Iterator` // where-bound over the `I::Intoiterator: Iterator` // alias-bound. trait Iterator { type Item; } trait IntoIterator { type Item; type IntoIter: Iterator; } fn normalize>() {} fn foo() where I: IntoIterator, I::IntoIter: Iterator, { normalize::(); } fn main() {}