]> git.lizzy.rs Git - rust.git/blob - src/test/ui/half-open-range-patterns/exclusive_range_pattern_syntax_collision3.rs
Rollup merge of #92959 - asquared31415:test-non-fn-help, r=estebank
[rust.git] / src / test / ui / half-open-range-patterns / exclusive_range_pattern_syntax_collision3.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         [..9, 99..100, _] => {},
7         //~^ ERROR mismatched types
8         //~| ERROR mismatched types
9         //~| ERROR mismatched types
10         _ => {},
11     }
12 }