summaryrefslogtreecommitdiffstats
path: root/tests/ui/traits/assoc-type-in-superbad.stderr
blob: 7fa1d2c2eed67c8fd85f48d77f1aa019a3d36fb7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
error[E0271]: expected `IntoIter<i32>` to be an iterator that yields `u32`, but it yields `i32`
  --> $DIR/assoc-type-in-superbad.rs:12:16
   |
LL |     type Key = u32;
   |                ^^^ expected `u32`, found `i32`
   |
note: required by a bound in `Foo`
  --> $DIR/assoc-type-in-superbad.rs:7:25
   |
LL | pub trait Foo: Iterator<Item = <Self as Foo>::Key> {
   |                         ^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Foo`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0271`.