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> {
12 type Key = u32; //~ ERROR type mismatch