diff options
| author | Esteban Kuber <esteban@kuber.com.ar> | 2021-10-12 13:16:36 +0000 |
|---|---|---|
| committer | Esteban Kuber <esteban@kuber.com.ar> | 2021-12-10 03:08:24 +0000 |
| commit | 0ee723edb54031afdd6e5f07a6daf19dcc34e665 (patch) | |
| tree | 9bf2da9ff7b3fcf55a7d32903b406526a42c3bec /src | |
| parent | 10a74ac2e0f57f3aaf67991bf4c5be994f240236 (diff) | |
| download | rust-0ee723edb54031afdd6e5f07a6daf19dcc34e665.tar.gz rust-0ee723edb54031afdd6e5f07a6daf19dcc34e665.zip | |
Update nll test
Diffstat (limited to 'src')
| -rw-r--r-- | src/test/ui/async-await/issues/issue-72312.nll.stderr | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/test/ui/async-await/issues/issue-72312.nll.stderr b/src/test/ui/async-await/issues/issue-72312.nll.stderr new file mode 100644 index 00000000000..cf7723ada56 --- /dev/null +++ b/src/test/ui/async-await/issues/issue-72312.nll.stderr @@ -0,0 +1,15 @@ +error[E0521]: borrowed data escapes outside of associated function + --> $DIR/issue-72312.rs:13:24 + | +LL | pub async fn start(&self) { + | ----- `self` is a reference that is only valid in the associated function body +... +LL | require_static(async move { + | ________________________^ +LL | | &self; +LL | | }); + | |_________^ `self` escapes the associated function body here + +error: aborting due to previous error + +For more information about this error, try `rustc --explain E0521`. |
