summaryrefslogtreecommitdiffstats
path: root/tests/ui/half-open-range-patterns/pat-tuple-5.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/half-open-range-patterns/pat-tuple-5.rs')
-rw-r--r--tests/ui/half-open-range-patterns/pat-tuple-5.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/half-open-range-patterns/pat-tuple-5.rs b/tests/ui/half-open-range-patterns/pat-tuple-5.rs
new file mode 100644
index 000000000..995ef03c8
--- /dev/null
+++ b/tests/ui/half-open-range-patterns/pat-tuple-5.rs
@@ -0,0 +1,9 @@
+#![feature(exclusive_range_pattern)]
+
+fn main() {
+ const PAT: u8 = 1;
+
+ match (0, 1) {
+ (PAT ..) => {} //~ ERROR mismatched types
+ }
+}