2022-10-05 16:18:22 -05:00
|
|
|
#![feature(half_open_range_patterns_in_slices)]
|
2017-01-19 08:14:02 -06:00
|
|
|
#![feature(exclusive_range_pattern)]
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
match [5..4, 99..105, 43..44] {
|
2019-07-09 01:44:46 -05:00
|
|
|
[_, 99..] => {},
|
2019-12-11 03:04:34 -06:00
|
|
|
//~^ ERROR pattern requires 2 elements but array has 3
|
2019-07-23 21:01:38 -05:00
|
|
|
//~| ERROR mismatched types
|
2017-01-19 08:14:02 -06:00
|
|
|
_ => {},
|
|
|
|
}
|
|
|
|
}
|