2020-09-02 02:40:56 -05:00
|
|
|
error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/E0719.rs:1:33
|
2018-11-04 20:02:43 -06:00
|
|
|
|
|
2018-11-06 17:17:11 -06:00
|
|
|
LL | trait Foo: Iterator<Item = i32, Item = i32> {}
|
|
|
|
| ---------- ^^^^^^^^^^ re-bound here
|
|
|
|
| |
|
|
|
|
| `Item` bound here first
|
2018-11-04 20:02:43 -06:00
|
|
|
|
2020-09-02 02:40:56 -05:00
|
|
|
error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
|
2019-05-28 13:46:13 -05:00
|
|
|
--> $DIR/E0719.rs:6:42
|
2018-11-06 17:17:11 -06:00
|
|
|
|
|
2019-05-28 13:46:13 -05:00
|
|
|
LL | fn test() -> Box<dyn Iterator<Item = (), Item = Unit>> {
|
|
|
|
| --------- ^^^^^^^^^^^ re-bound here
|
|
|
|
| |
|
|
|
|
| `Item` bound here first
|
2018-11-06 17:17:11 -06:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
2018-11-04 20:02:43 -06:00
|
|
|
|
2020-03-01 14:15:44 -06:00
|
|
|
For more information about this error, try `rustc --explain E0719`.
|