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