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