2023-10-04 01:10:51 +00:00
|
|
|
error[E0719]: the value of the associated type `Item` in 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
|
|
|
|
2023-10-04 01:10:51 +00:00
|
|
|
error[E0719]: the value of the associated type `Item` in 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
|
2023-10-04 18:34:50 +00:00
|
|
|
|
|
|
|
|
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
2023-04-19 00:13:53 +00:00
|
|
|
|
2023-10-31 13:45:26 +00:00
|
|
|
error[E0719]: the value of the associated type `Item` in trait `Iterator` is already specified
|
|
|
|
--> $DIR/E0719.rs:1:33
|
|
|
|
|
|
|
|
|
LL | trait Foo: Iterator<Item = i32, Item = i32> {}
|
|
|
|
| ---------- ^^^^^^^^^^ re-bound here
|
|
|
|
| |
|
|
|
|
| `Item` bound here first
|
|
|
|
|
|
|
|
|
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
|
|
|
|
2024-02-23 11:45:44 +00:00
|
|
|
error[E0719]: the value of the associated type `Item` in trait `Iterator` is already specified
|
|
|
|
--> $DIR/E0719.rs:8:42
|
|
|
|
|
|
|
|
|
LL | fn test() -> Box<dyn Iterator<Item = (), Item = Unit>> {
|
|
|
|
| --------- ^^^^^^^^^^^ re-bound here
|
|
|
|
| |
|
|
|
|
| `Item` bound here first
|
|
|
|
|
2023-10-31 13:45:26 +00:00
|
|
|
error[E0719]: the value of the associated type `Item` in trait `Iterator` is already specified
|
|
|
|
--> $DIR/E0719.rs:14:38
|
|
|
|
|
|
|
|
|
LL | let _: &dyn Iterator<Item = i32, Item = i32>;
|
|
|
|
| ---------- ^^^^^^^^^^ re-bound here
|
|
|
|
| |
|
|
|
|
| `Item` bound here first
|
|
|
|
|
|
|
|
error: aborting due to 5 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`.
|