]> git.lizzy.rs Git - rust.git/blob - src/test/ui/compare-method/traits-misc-mismatch-2.stderr
Auto merge of #75936 - sdroege:chunks-exact-construction-bounds-check, r=nagisa
[rust.git] / src / test / ui / compare-method / traits-misc-mismatch-2.stderr
1 error[E0276]: impl has stricter requirements than trait
2   --> $DIR/traits-misc-mismatch-2.rs:13:5
3    |
4 LL |     fn zip<B, U: Iterator<U>>(self, other: U) -> ZipIterator<Self, U>;
5    |     ------------------------------------------------------------------ definition of `zip` from trait
6 ...
7 LL |     fn zip<B, U: Iterator<B>>(self, other: U) -> ZipIterator<T, U> {
8    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ impl has extra requirement `U: Iterator<B>`
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0276`.