2020-09-02 07:40:56 +00:00
|
|
|
error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
|
2018-12-25 15:56:47 +00: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 07:40:56 +00:00
|
|
|
error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
|
2023-04-19 00:13:53 +00:00
|
|
|
--> $DIR/E0719.rs:1: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 trait `Iterator`) is already specified
|
|
|
|
--> $DIR/E0719.rs:7:42
|
2018-11-06 23:17:11 +00:00
|
|
|
|
|
2019-05-28 18:46:13 +00: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
|
|
|
|
2023-04-19 00:13:53 +00:00
|
|
|
error: aborting due to 3 previous errors
|
2018-11-05 02:02:43 +00:00
|
|
|
|
2020-03-01 20:15:44 +00:00
|
|
|
For more information about this error, try `rustc --explain E0719`.
|