]> git.lizzy.rs Git - rust.git/blob - src/test/ui/traits/assoc-type-in-superbad.stderr
Add regression test for #82830
[rust.git] / src / test / ui / traits / assoc-type-in-superbad.stderr
1 error[E0271]: type mismatch resolving `<std::vec::IntoIter<i32> as Iterator>::Item == u32`
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`.