rust/tests/ui/error-codes/E0719.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
790 B
Plaintext
Raw Normal View History

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
|
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
2019-05-28 13:46:13 -05:00
--> $DIR/E0719.rs:6:42
|
2019-05-28 13:46:13 -05:00
LL | fn test() -> Box<dyn 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`.