summaryrefslogtreecommitdiffstats
path: root/src/test/ui/generic-associated-types/extended/lending_iterator.base.stderr
blob: 614c4a34c187dd9e5e8c2801603854289c534bc6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
error[E0276]: impl has stricter requirements than trait
  --> $DIR/lending_iterator.rs:13:45
   |
LL |     fn from_iter<T: for<'x> LendingIterator<Item<'x> = A>>(iter: T) -> Self;
   |     ------------------------------------------------------------------------ definition of `from_iter` from trait
...
LL |     fn from_iter<I: for<'x> LendingIterator<Item<'x> = A>>(mut iter: I) -> Self {
   |                                             ^^^^^^^^^^^^ impl has extra requirement `I: 'x`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0276`.