]> git.lizzy.rs Git - rust.git/blob - tests/ui/half-open-range-patterns/exclusive_range_pattern_syntax_collision.rs
Rollup merge of #106427 - mejrs:translation_errors, r=davidtwco
[rust.git] / tests / ui / half-open-range-patterns / exclusive_range_pattern_syntax_collision.rs
1 #![feature(half_open_range_patterns_in_slices)]
2 #![feature(exclusive_range_pattern)]
3
4 fn main() {
5     match [5..4, 99..105, 43..44] {
6         [_, 99.., _] => {},
7         //~^ ERROR mismatched types
8         _ => {},
9     }
10 }