]> git.lizzy.rs Git - rust.git/blob - tests/ui/generic-associated-types/extended/lending_iterator.base.stderr
Auto merge of #101138 - Rejyr:diagnostic-migration-rustc-lint-pt2, r=davidtwco
[rust.git] / tests / ui / generic-associated-types / extended / lending_iterator.base.stderr
1 error[E0276]: impl has stricter requirements than trait
2   --> $DIR/lending_iterator.rs:13:45
3    |
4 LL |     fn from_iter<T: for<'x> LendingIterator<Item<'x> = A>>(iter: T) -> Self;
5    |     ------------------------------------------------------------------------ definition of `from_iter` from trait
6 ...
7 LL |     fn from_iter<I: for<'x> LendingIterator<Item<'x> = A>>(mut iter: I) -> Self {
8    |                                             ^^^^^^^^^^^^ impl has extra requirement `I: 'x`
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0276`.