diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/async-await/no-params-non-move-async-closure.stderr | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/ui/async-await/no-params-non-move-async-closure.stderr b/src/test/ui/async-await/no-params-non-move-async-closure.stderr new file mode 100644 index 000000000..1f589c516 --- /dev/null +++ b/src/test/ui/async-await/no-params-non-move-async-closure.stderr @@ -0,0 +1,11 @@ +error[E0708]: `async` non-`move` closures with parameters are not currently supported + --> $DIR/no-params-non-move-async-closure.rs:6:13 + | +LL | let _ = async |x: u8| {}; + | ^^^^^^^^^^^^^ + | + = help: consider using `let` statements to manually capture variables by reference before entering an `async move` closure + +error: aborting due to previous error + +For more information about this error, try `rustc --explain E0708`. |