fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69444 - pietroalbini:stable-next-final-v2-new, r=pietroalbinif3e1a954d2e

1.41.1
746 B19 linesraw
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`.