]> git.lizzy.rs Git - rust.git/blob - src/test/ui/associated-types/associated-types-overridden-binding.stderr
Rollup merge of #76468 - SNCPlay42:lifetime-names, r=Mark-Simulacrum
[rust.git] / src / test / ui / associated-types / associated-types-overridden-binding.stderr
1 error[E0284]: type annotations needed: cannot satisfy `<Self as Iterator>::Item == i32`
2   --> $DIR/associated-types-overridden-binding.rs:4:12
3    |
4 LL | trait Foo: Iterator<Item = i32> {}
5    |                     ---------- required by this bound in `Foo`
6 LL | trait Bar: Foo<Item = u32> {}
7    |            ^^^^^^^^^^^^^^^ cannot satisfy `<Self as Iterator>::Item == i32`
8
9 error[E0284]: type annotations needed: cannot satisfy `<Self as Iterator>::Item == i32`
10   --> $DIR/associated-types-overridden-binding.rs:7:21
11    |
12 LL | trait I32Iterator = Iterator<Item = i32>;
13    |                              ---------- required by this bound in `I32Iterator`
14 LL | trait U32Iterator = I32Iterator<Item = u32>;
15    |                     ^^^^^^^^^^^^^^^^^^^^^^^ cannot satisfy `<Self as Iterator>::Item == i32`
16
17 error: aborting due to 2 previous errors
18
19 For more information about this error, try `rustc --explain E0284`.