1 // Issue #5886: a complex instance of issue #2687.
4 fn next(&mut self) -> Option<A>;
7 trait IteratorUtil<A>: Sized
9 fn zip<B, U: Iterator<U>>(self, other: U) -> ZipIterator<Self, U>;
12 impl<A, T: Iterator<A>> IteratorUtil<A> for T {
13 fn zip<B, U: Iterator<B>>(self, other: U) -> ZipIterator<T, U> {
15 ZipIterator{a: self, b: other}
19 struct ZipIterator<T, U> {