]>
Commit | Line | Data |
---|---|---|
60c5eb7d | 1 | error[E0284]: type annotations needed |
0731742a | 2 | --> $DIR/associated-types-overridden-binding.rs:4:1 |
a1dfa0c6 | 3 | | |
e1599b0c XL |
4 | LL | trait Foo: Iterator<Item = i32> {} |
5 | | ------------------------------- required by `Foo` | |
532ac7d7 | 6 | LL | trait Bar: Foo<Item = u32> {} |
60c5eb7d XL |
7 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type for type parameter `Self` |
8 | | | |
9 | = note: cannot resolve `<Self as std::iter::Iterator>::Item == i32` | |
a1dfa0c6 | 10 | |
60c5eb7d | 11 | error[E0284]: type annotations needed |
e74abb32 XL |
12 | --> $DIR/associated-types-overridden-binding.rs:7:1 |
13 | | | |
60c5eb7d XL |
14 | LL | trait I32Iterator = Iterator<Item = i32>; |
15 | | ----------------------------------------- required by `I32Iterator` | |
e74abb32 | 16 | LL | trait U32Iterator = I32Iterator<Item = u32>; |
60c5eb7d XL |
17 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type for type parameter `Self` |
18 | | | |
19 | = note: cannot resolve `<Self as std::iter::Iterator>::Item == i32` | |
e74abb32 XL |
20 | |
21 | error: aborting due to 2 previous errors | |
a1dfa0c6 | 22 | |
60c5eb7d | 23 | For more information about this error, try `rustc --explain E0284`. |