fork/rust

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

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

1.43.1
712 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: '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: 'a`...
16
17error: aborting due to 2 previous errors
18
19For more information about this error, try `rustc --explain E0309`.