]> git.lizzy.rs Git - rust.git/blob - tests/ui/regions/closure-in-projection-issue-97405.stderr
internally change regions to be covariant
[rust.git] / tests / ui / regions / closure-in-projection-issue-97405.stderr
1 error[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    |
4 LL |     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
10 error[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    |
13 LL |     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
19 error[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    |
22 LL |     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
28 error: aborting due to 3 previous errors
29
30 For more information about this error, try `rustc --explain E0310`.