]> git.lizzy.rs Git - rust.git/blob - src/test/ui/exclusive-range/exclusive_range_pattern_syntax_collision2.rs
Rollup merge of #63055 - Mark-Simulacrum:save-analysis-clean-2, r=Xanewok
[rust.git] / src / test / ui / exclusive-range / exclusive_range_pattern_syntax_collision2.rs
1 #![feature(exclusive_range_pattern)]
2
3 fn main() {
4     match [5..4, 99..105, 43..44] {
5         [_, 99..] => {},
6         //~^ ERROR `X..` range patterns are not supported
7         //~| ERROR pattern requires 2 elements but array has 3
8         //~| ERROR mismatched types
9         _ => {},
10     }
11 }