1 error[E0309]: the associated type `<T as Iterator>::Item` may not live long enough
2 --> $DIR/projection-no-regions-fn.rs:13:5
4 LL | Box::new(x.next())
7 = help: consider adding an explicit lifetime bound `<T as Iterator>::Item: 'a`...
8 = note: ...so that the type `<T as Iterator>::Item` will meet its required lifetime bounds
10 error[E0309]: the associated type `<T as Iterator>::Item` may not live long enough
11 --> $DIR/projection-no-regions-fn.rs:28:5
13 LL | Box::new(x.next())
16 = help: consider adding an explicit lifetime bound `<T as Iterator>::Item: 'a`...
17 = note: ...so that the type `<T as Iterator>::Item` will meet its required lifetime bounds
19 error: aborting due to 2 previous errors
21 For more information about this error, try `rustc --explain E0309`.