about summary refs log tree commit diff
path: root/tests/ui/half-open-range-patterns/exclusive_range_pattern_syntax_collision.rs
blob: dd4fe7c78b76d040f475631810e4c2a5404f64fb (plain)
1
2
3
4
5
6
7
8
9
#![feature(half_open_range_patterns_in_slices)]

fn main() {
    match [5..4, 99..105, 43..44] {
        [_, 99.., _] => {},
        //~^ ERROR mismatched types
        _ => {},
    }
}