@@ -2,43 +2,28 @@ error[E0310]: the associated type `<impl Iterator as Iterator>::Item` may not li
22 --> $DIR/closure-in-projection-issue-97405.rs:24:5
33 |
44LL | assert_static(opaque(async move { t; }).next());
5- | ^^^^^^^^^^^^^
5+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
66 |
77 = help: consider adding an explicit lifetime bound `<impl Iterator as Iterator>::Item: 'static`...
8- = note: ...so that the type `Option<<impl Iterator as Iterator>::Item>` will meet its required lifetime bounds...
9- note: ...that is required by this bound
10- --> $DIR/closure-in-projection-issue-97405.rs:11:21
11- |
12- LL | fn assert_static<T: 'static>(_: T) {}
13- | ^^^^^^^
8+ = note: ...so that the type `<impl Iterator as Iterator>::Item` will meet its required lifetime bounds
149
1510error[E0310]: the associated type `<impl Iterator as Iterator>::Item` may not live long enough
1611 --> $DIR/closure-in-projection-issue-97405.rs:26:5
1712 |
1813LL | assert_static(opaque(move || { t; }).next());
19- | ^^^^^^^^^^^^^
14+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2015 |
2116 = help: consider adding an explicit lifetime bound `<impl Iterator as Iterator>::Item: 'static`...
22- = note: ...so that the type `Option<<impl Iterator as Iterator>::Item>` will meet its required lifetime bounds...
23- note: ...that is required by this bound
24- --> $DIR/closure-in-projection-issue-97405.rs:11:21
25- |
26- LL | fn assert_static<T: 'static>(_: T) {}
27- | ^^^^^^^
17+ = note: ...so that the type `<impl Iterator as Iterator>::Item` will meet its required lifetime bounds
2818
2919error[E0310]: the associated type `<impl Iterator as Iterator>::Item` may not live long enough
3020 --> $DIR/closure-in-projection-issue-97405.rs:28:5
3121 |
3222LL | assert_static(opaque(opaque(async move { t; }).next()).next());
33- | ^^^^^^^^^^^^^
23+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3424 |
3525 = help: consider adding an explicit lifetime bound `<impl Iterator as Iterator>::Item: 'static`...
36- = note: ...so that the type `Option<<impl Iterator as Iterator>::Item>` will meet its required lifetime bounds...
37- note: ...that is required by this bound
38- --> $DIR/closure-in-projection-issue-97405.rs:11:21
39- |
40- LL | fn assert_static<T: 'static>(_: T) {}
41- | ^^^^^^^
26+ = note: ...so that the type `<impl Iterator as Iterator>::Item` will meet its required lifetime bounds
4227
4328error: aborting due to 3 previous errors
4429
0 commit comments