fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0310]: the associated type `<impl Iterator as Iterator>::Item` may not live long enough 2 --> $DIR/closure-in-projection-issue-97405.rs:24:5 3 | 4LL | assert_static(opaque(async move { t; }).next()); 5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 6 | 7 = help: consider adding an explicit lifetime bound `<impl Iterator as Iterator>::Item: 'static`... 8 = note: ...so that the type `<impl Iterator as Iterator>::Item` will meet its required lifetime bounds 9 10error[E0310]: the associated type `<impl Iterator as Iterator>::Item` may not live long enough 11 --> $DIR/closure-in-projection-issue-97405.rs:26:5 12 | 13LL | assert_static(opaque(move || { t; }).next()); 14 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15 | 16 = help: consider adding an explicit lifetime bound `<impl Iterator as Iterator>::Item: 'static`... 17 = note: ...so that the type `<impl Iterator as Iterator>::Item` will meet its required lifetime bounds 18 19error[E0310]: the associated type `<impl Iterator as Iterator>::Item` may not live long enough 20 --> $DIR/closure-in-projection-issue-97405.rs:28:5 21 | 22LL | assert_static(opaque(opaque(async move { t; }).next()).next()); 23 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 24 | 25 = help: consider adding an explicit lifetime bound `<impl Iterator as Iterator>::Item: 'static`... 26 = note: ...so that the type `<impl Iterator as Iterator>::Item` will meet its required lifetime bounds 27 28error: aborting due to 3 previous errors 29 30For more information about this error, try `rustc --explain E0310`.