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
22 --> $DIR/issue-72312.rs:13:24
33 |
44LL | 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`
69...
710LL | require_static(async move {
811 | ________________________^
912LL | | &self;
1013LL | | });
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`
1218
1319error: aborting due to previous error
1420
You can’t perform that action at this time.
0 commit comments