query generator kind for error reporting

This commit is contained in:
csmoe 2019-10-10 22:20:57 +08:00
parent 8c7b921feb
commit 9f6942066b
4 changed files with 55 additions and 26 deletions

View file

@ -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 } )
| ^^^^^^^^^^