fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.1 KiB27 linesraw
1error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
2  --> $DIR/E0719.rs:1:33
3   |
4LL | trait Foo: Iterator<Item = i32, Item = i32> {}
5   |                     ----------  ^^^^^^^^^^ re-bound here
6   |                     |
7   |                     `Item` bound here first
8
9error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
10  --> $DIR/E0719.rs:1:33
11   |
12LL | trait Foo: Iterator<Item = i32, Item = i32> {}
13   |                     ----------  ^^^^^^^^^^ re-bound here
14   |                     |
15   |                     `Item` bound here first
16
17error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
18  --> $DIR/E0719.rs:7:42
19   |
20LL | fn test() -> Box<dyn Iterator<Item = (), Item = Unit>> {
21   |                               ---------  ^^^^^^^^^^^ re-bound here
22   |                               |
23   |                               `Item` bound here first
24
25error: aborting due to 3 previous errors
26
27For more information about this error, try `rustc --explain E0719`.