about summary refs log tree commit diff
path: root/tests/ui/inline-const/expr-with-block.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/inline-const/expr-with-block.rs')
-rw-r--r--tests/ui/inline-const/expr-with-block.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/inline-const/expr-with-block.rs b/tests/ui/inline-const/expr-with-block.rs
new file mode 100644
index 00000000000..391872476fc
--- /dev/null
+++ b/tests/ui/inline-const/expr-with-block.rs
@@ -0,0 +1,10 @@
+// check-pass
+#![feature(inline_const)]
+fn main() {
+    match true {
+        true => const {}
+        false => ()
+    }
+    const {}
+    ()
+}