]> git.lizzy.rs Git - rust.git/blob - tests/ui/traits/assoc-type-in-superbad.stderr
Rollup merge of #106397 - compiler-errors:new-solver-impl-wc, r=lcnr
[rust.git] / tests / ui / traits / assoc-type-in-superbad.stderr
1 error[E0271]: expected `IntoIter<i32>` to be an iterator that yields `u32`, but it yields `i32`
2   --> $DIR/assoc-type-in-superbad.rs:12:16
3    |
4 LL |     type Key = u32;
5    |                ^^^ expected `u32`, found `i32`
6    |
7 note: required by a bound in `Foo`
8   --> $DIR/assoc-type-in-superbad.rs:7:25
9    |
10 LL | pub trait Foo: Iterator<Item = <Self as Foo>::Key> {
11    |                         ^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Foo`
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0271`.