| error[E0309]: the associated type `<T as std::iter::Iterator>::Item` may not live long enough |
| --> $DIR/projection-no-regions-fn.rs:23:5 |
| | |
| LL | Box::new(x.next()) |
| | ^^^^^^^^^^^^^^^^^^ |
| | |
| = help: consider adding an explicit lifetime bound `<T as std::iter::Iterator>::Item: ReEarlyBound(0, 'a)`... |
| |
| error[E0309]: the associated type `<T as std::iter::Iterator>::Item` may not live long enough |
| --> $DIR/projection-no-regions-fn.rs:38:5 |
| | |
| LL | Box::new(x.next()) |
| | ^^^^^^^^^^^^^^^^^^ |
| | |
| = help: consider adding an explicit lifetime bound `<T as std::iter::Iterator>::Item: ReEarlyBound(0, 'a)`... |
| |
| error: aborting due to 2 previous errors |
| |
| For more information about this error, try `rustc --explain E0309`. |