summary refs log tree commit diff
path: root/src/test/ui/error-codes/E0719.stderr
blob: 0666e1ede3cf70d283501a33beee87915e643903 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
error[E0719]: the value of the associated type `Item` (from the trait `std::iter::Iterator`) is already specified
  --> $DIR/E0719.rs:11:33
   |
LL | trait Foo: Iterator<Item = i32, Item = i32> {}
   |                     ----------  ^^^^^^^^^^ re-bound here
   |                     |
   |                     `Item` bound here first

error[E0719]: the value of the associated type `Item` (from the trait `std::iter::Iterator`) is already specified
  --> $DIR/E0719.rs:16:38
   |
LL | fn test() -> Box<Iterator<Item = (), Item = Unit>> {
   |                           ---------  ^^^^^^^^^^^ re-bound here
   |                           |
   |                           `Item` bound here first

error: aborting due to 2 previous errors

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