1 error[E0506]: cannot assign to `*x` because it is borrowed
2 --> $DIR/issue-74072-lifetime-name-annotations.rs:9:5
5 | --- borrow of `*x` occurs here
7 | ^^^^^^^ assignment to borrowed `*x` occurs here
9 error[E0506]: cannot assign to `*x` because it is borrowed
10 --> $DIR/issue-74072-lifetime-name-annotations.rs:16:9
13 | --- borrow of `*x` occurs here
15 | ^^^^^^^ assignment to borrowed `*x` occurs here
17 | - returning this value requires that `*x` is borrowed for `'1`
19 | - return type of async closure is &'1 i32
21 error[E0506]: cannot assign to `*x` because it is borrowed
22 --> $DIR/issue-74072-lifetime-name-annotations.rs:24:9
24 LL | (async move || -> &i32 {
25 | - let's call the lifetime of this reference `'1`
27 | --- borrow of `*x` occurs here
29 | ^^^^^^^ assignment to borrowed `*x` occurs here
31 | - returning this value requires that `*x` is borrowed for `'1`
33 error[E0506]: cannot assign to `*x` because it is borrowed
34 --> $DIR/issue-74072-lifetime-name-annotations.rs:32:9
37 | --- borrow of `*x` occurs here
39 | ^^^^^^^ assignment to borrowed `*x` occurs here
41 | - returning this value requires that `*x` is borrowed for `'1`
43 | - return type of async block is &'1 i32
45 error: aborting due to 4 previous errors
47 For more information about this error, try `rustc --explain E0506`.