fork/rust
git clone https://git.julia.blue/fork/rust
4560ea788cb
1.39.0
1error[E0309]: the associated type `<T as std::iter::Iterator>::Item` may not live long enough 2 --> $DIR/projection-no-regions-fn.rs:13:5 3 | 4LL | Box::new(x.next()) 5 | ^^^^^^^^^^^^^^^^^^ 6 | 7 = help: consider adding an explicit lifetime bound `<T as std::iter::Iterator>::Item: ReEarlyBound(0, 'a)`... 8 9error[E0309]: the associated type `<T as std::iter::Iterator>::Item` may not live long enough 10 --> $DIR/projection-no-regions-fn.rs:28:5 11 | 12LL | Box::new(x.next()) 13 | ^^^^^^^^^^^^^^^^^^ 14 | 15 = help: consider adding an explicit lifetime bound `<T as std::iter::Iterator>::Item: ReEarlyBound(0, 'a)`... 16 17error: aborting due to 2 previous errors 18 19For more information about this error, try `rustc --explain E0309`.