about summary refs log tree commit diff
path: root/tests/ui/half-open-range-patterns/pat-tuple-4.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/half-open-range-patterns/pat-tuple-4.rs')
-rw-r--r--tests/ui/half-open-range-patterns/pat-tuple-4.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/ui/half-open-range-patterns/pat-tuple-4.rs b/tests/ui/half-open-range-patterns/pat-tuple-4.rs
new file mode 100644
index 00000000000..11c4ab9c5fc
--- /dev/null
+++ b/tests/ui/half-open-range-patterns/pat-tuple-4.rs
@@ -0,0 +1,12 @@
+// check-pass
+
+#![feature(exclusive_range_pattern)]
+
+fn main() {
+    const PAT: u8 = 1;
+
+    match 0 {
+        (.. PAT) => {}
+        _ => {}
+    }
+}