]> git.proxmox.com Git - rustc.git/blame - src/test/ui/associated-types/associated-types-overridden-binding.stderr
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / associated-types / associated-types-overridden-binding.stderr
CommitLineData
60c5eb7d 1error[E0284]: type annotations needed
0731742a 2 --> $DIR/associated-types-overridden-binding.rs:4:1
a1dfa0c6 3 |
e1599b0c
XL
4LL | trait Foo: Iterator<Item = i32> {}
5 | ------------------------------- required by `Foo`
532ac7d7 6LL | 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 11error[E0284]: type annotations needed
e74abb32
XL
12 --> $DIR/associated-types-overridden-binding.rs:7:1
13 |
60c5eb7d
XL
14LL | trait I32Iterator = Iterator<Item = i32>;
15 | ----------------------------------------- required by `I32Iterator`
e74abb32 16LL | 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
21error: aborting due to 2 previous errors
a1dfa0c6 22
60c5eb7d 23For more information about this error, try `rustc --explain E0284`.