summaryrefslogtreecommitdiffstats
path: root/src/test/ui/async-await/async-closure-matches-expr.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/async-await/async-closure-matches-expr.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/test/ui/async-await/async-closure-matches-expr.rs b/src/test/ui/async-await/async-closure-matches-expr.rs
new file mode 100644
index 000000000..d82fbcdc5
--- /dev/null
+++ b/src/test/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 || {});
+}