summaryrefslogtreecommitdiffstats
path: root/tests/ui/async-await/no-params-non-move-async-closure.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/async-await/no-params-non-move-async-closure.rs')
-rw-r--r--tests/ui/async-await/no-params-non-move-async-closure.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ui/async-await/no-params-non-move-async-closure.rs b/tests/ui/async-await/no-params-non-move-async-closure.rs
new file mode 100644
index 000000000..3b15f35c2
--- /dev/null
+++ b/tests/ui/async-await/no-params-non-move-async-closure.rs
@@ -0,0 +1,8 @@
+// edition:2018
+
+#![feature(async_closure)]
+
+fn main() {
+ let _ = async |x: u8| {};
+ //~^ ERROR `async` non-`move` closures with parameters are not currently supported
+}