summaryrefslogtreecommitdiffstats
path: root/tests/ui/match/issue-92100.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/match/issue-92100.rs')
-rw-r--r--tests/ui/match/issue-92100.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/ui/match/issue-92100.rs b/tests/ui/match/issue-92100.rs
new file mode 100644
index 000000000..baac570dd
--- /dev/null
+++ b/tests/ui/match/issue-92100.rs
@@ -0,0 +1,7 @@
+#![feature(half_open_range_patterns_in_slices)]
+
+fn main() {
+ match [1, 2] {
+ [a.., a] => {} //~ ERROR cannot find value `a` in this scope
+ }
+}