]> git.lizzy.rs Git - rust.git/blob - src/test/ui/half-open-range-patterns/exclusive_range_pattern_syntax_collision2.rs
Auto merge of #84589 - In-line:zircon-thread-name, r=JohnTitor
[rust.git] / src / test / ui / half-open-range-patterns / exclusive_range_pattern_syntax_collision2.rs
1 #![feature(half_open_range_patterns)]
2 #![feature(exclusive_range_pattern)]
3
4 fn main() {
5     match [5..4, 99..105, 43..44] {
6         [_, 99..] => {},
7         //~^ ERROR pattern requires 2 elements but array has 3
8         //~| ERROR mismatched types
9         _ => {},
10     }
11 }