1 // Test case where an associated type is referenced from within the
2 // supertrait definition, and the impl makes the wrong
3 // associations. Issue #20220.
5 use std::vec::IntoIter;
7 pub trait Foo: Iterator<Item = <Self as Foo>::Key> {
11 impl Foo for IntoIter<i32> {
13 //~^ ERROR expected `std::vec::IntoIter<i32>` to be an iterator that yields `u32`, but it yields `i32`