summaryrefslogtreecommitdiffstats
path: root/src/test/ui/match/issue-92100.rs
blob: baac570dd8a9d5344de4b12f7fd9a77571efe1e9 (plain)
1
2
3
4
5
6
7
#![feature(half_open_range_patterns_in_slices)]

fn main() {
    match [1, 2] {
        [a.., a] => {} //~ ERROR cannot find value `a` in this scope
    }
}