]> git.lizzy.rs Git - rust.git/blob - tests/ui/associated-types/associated-types-overridden-binding.stderr
Rollup merge of #106427 - mejrs:translation_errors, r=davidtwco
[rust.git] / tests / 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 Bar: Foo<Item = u32> {}
5    |            ^^^^^^^^^^^^^^^ cannot satisfy `<Self as Iterator>::Item == i32`
6    |
7 note: required by a bound in `Foo`
8   --> $DIR/associated-types-overridden-binding.rs:3:21
9    |
10 LL | trait Foo: Iterator<Item = i32> {}
11    |                     ^^^^^^^^^^ required by this bound in `Foo`
12
13 error[E0284]: type annotations needed: cannot satisfy `<Self as Iterator>::Item == i32`
14   --> $DIR/associated-types-overridden-binding.rs:7:21
15    |
16 LL | trait U32Iterator = I32Iterator<Item = u32>;
17    |                     ^^^^^^^^^^^^^^^^^^^^^^^ cannot satisfy `<Self as Iterator>::Item == i32`
18    |
19 note: required by a bound in `I32Iterator`
20   --> $DIR/associated-types-overridden-binding.rs:6:30
21    |
22 LL | trait I32Iterator = Iterator<Item = i32>;
23    |                              ^^^^^^^^^^ required by this bound in `I32Iterator`
24
25 error: aborting due to 2 previous errors
26
27 For more information about this error, try `rustc --explain E0284`.