We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10a74ac commit 0ee723eCopy full SHA for 0ee723e
src/test/ui/async-await/issues/issue-72312.nll.stderr
@@ -0,0 +1,15 @@
1
+error[E0521]: borrowed data escapes outside of associated function
2
+ --> $DIR/issue-72312.rs:13:24
3
+ |
4
+LL | pub async fn start(&self) {
5
+ | ----- `self` is a reference that is only valid in the associated function body
6
+...
7
+LL | require_static(async move {
8
+ | ________________________^
9
+LL | | &self;
10
+LL | | });
11
+ | |_________^ `self` escapes the associated function body here
12
+
13
+error: aborting due to previous error
14
15
+For more information about this error, try `rustc --explain E0521`.
0 commit comments