]> git.lizzy.rs Git - rust.git/blob - src/test/ui/traits/traits-assoc-type-in-supertrait-bad.stderr
Maintain chain of derived obligations
[rust.git] / src / test / ui / traits / traits-assoc-type-in-supertrait-bad.stderr
1 error[E0271]: type mismatch resolving `<std::vec::IntoIter<i32> as std::iter::Iterator>::Item == u32`
2   --> $DIR/traits-assoc-type-in-supertrait-bad.rs:11:6
3    |
4 LL | pub trait Foo: Iterator<Item=<Self as Foo>::Key> {
5    |                         ----------------------- required by this bound in `Foo`
6 ...
7 LL | impl Foo for IntoIter<i32> {
8    |      ^^^ expected `i32`, found `u32`
9    |
10    = note: required because of the requirements on the impl of `Foo` for `std::vec::IntoIter<i32>`
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0271`.