summaryrefslogtreecommitdiffstats
path: root/tests/ui/async-await/async-closure-matches-expr.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/async-await/async-closure-matches-expr.rs')
-rw-r--r--tests/ui/async-await/async-closure-matches-expr.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/ui/async-await/async-closure-matches-expr.rs b/tests/ui/async-await/async-closure-matches-expr.rs
new file mode 100644
index 000000000..d82fbcdc5
--- /dev/null
+++ b/tests/ui/async-await/async-closure-matches-expr.rs
@@ -0,0 +1,12 @@
+// build-pass
+// edition:2018
+
+#![feature(async_closure)]
+
+macro_rules! match_expr {
+ ($x:expr) => {}
+}
+
+fn main() {
+ match_expr!(async || {});
+}