@@ -2,43 +2,28 @@ error[E0310]: the associated type `<impl Iterator as Iterator>::Item` may not li
2
2
--> $DIR/closure-in-projection-issue-97405.rs:24:5
3
3
|
4
4
LL | assert_static(opaque(async move { t; }).next());
5
- | ^^^^^^^^^^^^^
5
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6
6
|
7
7
= 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
14
9
15
10
error[E0310]: the associated type `<impl Iterator as Iterator>::Item` may not live long enough
16
11
--> $DIR/closure-in-projection-issue-97405.rs:26:5
17
12
|
18
13
LL | assert_static(opaque(move || { t; }).next());
19
- | ^^^^^^^^^^^^^
14
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
20
15
|
21
16
= 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
28
18
29
19
error[E0310]: the associated type `<impl Iterator as Iterator>::Item` may not live long enough
30
20
--> $DIR/closure-in-projection-issue-97405.rs:28:5
31
21
|
32
22
LL | assert_static(opaque(opaque(async move { t; }).next()).next());
33
- | ^^^^^^^^^^^^^
23
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
34
24
|
35
25
= 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
42
27
43
28
error: aborting due to 3 previous errors
44
29
0 commit comments