summaryrefslogtreecommitdiffstats
path: root/tests/ui/feature-gates/feature-gate-exclusive-range-pattern.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/feature-gates/feature-gate-exclusive-range-pattern.rs')
-rw-r--r--tests/ui/feature-gates/feature-gate-exclusive-range-pattern.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/ui/feature-gates/feature-gate-exclusive-range-pattern.rs b/tests/ui/feature-gates/feature-gate-exclusive-range-pattern.rs
new file mode 100644
index 000000000..ded08b93f
--- /dev/null
+++ b/tests/ui/feature-gates/feature-gate-exclusive-range-pattern.rs
@@ -0,0 +1,6 @@
+pub fn main() {
+ match 22 {
+ 0 .. 3 => {} //~ ERROR exclusive range pattern syntax is experimental
+ _ => {}
+ }
+}