about summary refs log tree commit diff
path: root/src/test
diff options
context:
space:
mode:
authorcsmoe <csmoe@msn.com>2019-10-10 22:20:57 +0800
committercsmoe <csmoe@msn.com>2019-10-10 17:27:23 +0000
commit9f6942066bd86a55baf56455a2c53d7d79b6038e (patch)
tree15d0e89acd41fcad1a6d4fc64e6497cc1111393a /src/test
parent8c7b921feb5b100b1825ad54d46a8cca575b35b3 (diff)
downloadrust-9f6942066bd86a55baf56455a2c53d7d79b6038e.tar.gz
rust-9f6942066bd86a55baf56455a2c53d7d79b6038e.zip
query generator kind for error reporting
Diffstat (limited to 'src/test')
-rw-r--r--src/test/ui/async-await/async-borrowck-escaping-block-error.stderr2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/ui/async-await/async-borrowck-escaping-block-error.stderr b/src/test/ui/async-await/async-borrowck-escaping-block-error.stderr
index af17ecc86fb..0eb3971d14a 100644
--- a/src/test/ui/async-await/async-borrowck-escaping-block-error.stderr
+++ b/src/test/ui/async-await/async-borrowck-escaping-block-error.stderr
@@ -12,7 +12,7 @@ note: generator is returned here
    |
 LL | fn foo() -> Box<impl std::future::Future<Output = u32>> {
    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-help: to force the closure to take ownership of `x` (and any other referenced variables), use the `move` keyword
+help: to force the async block to take ownership of `x` (and any other referenced variables), use the `move` keyword
    |
 LL |     Box::new(async move { x } )
    |                    ^^^^^^^^^^