review comment: move test

This commit is contained in:
Esteban Küber
2019-08-13 11:27:00 -07:00
parent 13fd4666b0
commit 25d507f497
2 changed files with 4 additions and 3 deletions

View File

@@ -0,0 +1,11 @@
error[E0728]: `await` is only allowed inside `async` functions and blocks
--> $DIR/non-async-enclosing-span.rs:10:13
|
LL | fn main() {
| ---- this is not `async`
LL | let x = move || {};
LL | let y = do_the_thing().await;
| ^^^^^^^^^^^^^^^^^^^^ only allowed inside `async` functions and blocks
error: aborting due to previous error