1 error: lifetime bound not satisfied
2 --> $DIR/issue-100013.rs:15:5
4 LL | / async { // a generator checked for autotrait impl `Send`
5 LL | | let x = None::<I::Future<'_, '_>>; // a type referencing GAT
6 LL | | async {}.await; // a yield point
10 note: the lifetime defined here...
11 --> $DIR/issue-100013.rs:16:38
13 LL | let x = None::<I::Future<'_, '_>>; // a type referencing GAT
15 note: ...must outlive the lifetime defined here
16 --> $DIR/issue-100013.rs:16:34
18 LL | let x = None::<I::Future<'_, '_>>; // a type referencing GAT
20 = note: this is a known limitation that will be removed in the future (see issue #100013 <https://github.com/rust-lang/rust/issues/100013> for more information)
22 error: lifetime bound not satisfied
23 --> $DIR/issue-100013.rs:22:5
25 LL | / async { // a generator checked for autotrait impl `Send`
26 LL | | let x = None::<I::Future<'a, 'b>>; // a type referencing GAT
27 LL | | async {}.await; // a yield point
31 note: the lifetime defined here...
32 --> $DIR/issue-100013.rs:21:14
34 LL | fn call2<'a, 'b, I: FutureIterator>() -> impl Send {
36 note: ...must outlive the lifetime defined here
37 --> $DIR/issue-100013.rs:21:10
39 LL | fn call2<'a, 'b, I: FutureIterator>() -> impl Send {
41 = note: this is a known limitation that will be removed in the future (see issue #100013 <https://github.com/rust-lang/rust/issues/100013> for more information)
43 error: lifetime may not live long enough
44 --> $DIR/issue-100013.rs:23:17
46 LL | fn call2<'a, 'b, I: FutureIterator>() -> impl Send {
47 | -- -- lifetime `'b` defined here
49 | lifetime `'a` defined here
50 LL | async { // a generator checked for autotrait impl `Send`
51 LL | let x = None::<I::Future<'a, 'b>>; // a type referencing GAT
52 | ^^^^^^^^^^^^^^^^^^^^^^^^^ requires that `'a` must outlive `'b`
54 = help: consider adding the following bound: `'a: 'b`
56 error: lifetime bound not satisfied
57 --> $DIR/issue-100013.rs:29:5
59 LL | / async { // a generator checked for autotrait impl `Send`
60 LL | | let x = None::<I::Future<'a, 'b>>; // a type referencing GAT
61 LL | | async {}.await; // a yield point
65 note: the lifetime defined here...
66 --> $DIR/issue-100013.rs:28:18
68 LL | fn call3<'a: 'b, 'b, I: FutureIterator>() -> impl Send {
70 note: ...must outlive the lifetime defined here
71 --> $DIR/issue-100013.rs:28:10
73 LL | fn call3<'a: 'b, 'b, I: FutureIterator>() -> impl Send {
75 = note: this is a known limitation that will be removed in the future (see issue #100013 <https://github.com/rust-lang/rust/issues/100013> for more information)
77 error: aborting due to 4 previous errors