fork/rust

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

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

1.40.0
752 B18 linesraw
1error[E0719]: the value of the associated type `Item` (from the trait `std::iter::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 the trait `std::iter::Iterator`) is already specified
10  --> $DIR/E0719.rs:6:42
11   |
12LL | fn test() -> Box<dyn Iterator<Item = (), Item = Unit>> {
13   |                               ---------  ^^^^^^^^^^^ re-bound here
14   |                               |
15   |                               `Item` bound here first
16
17error: aborting due to 2 previous errors
18