File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
src/test/ui/async-await/issues Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -2,13 +2,19 @@ error[E0521]: borrowed data escapes outside of associated function
2
2
--> $DIR/issue-72312.rs:13:24
3
3
|
4
4
LL | pub async fn start(&self) {
5
- | ----- `self` is a reference that is only valid in the associated function body
5
+ | -----
6
+ | |
7
+ | `self` is a reference that is only valid in the associated function body
8
+ | let's call the lifetime of this reference `'1`
6
9
...
7
10
LL | require_static(async move {
8
11
| ________________________^
9
12
LL | | &self;
10
13
LL | | });
11
- | |_________^ `self` escapes the associated function body here
14
+ | | ^
15
+ | | |
16
+ | |_________`self` escapes the associated function body here
17
+ | argument requires that `'1` must outlive `'static`
12
18
13
19
error: aborting due to previous error
14
20
You can’t perform that action at this time.
0 commit comments