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
|
|
|
[..9, 99..100, _] => {},
|
2019-12-11 03:04:34 -06:00
|
|
|
//~^ ERROR mismatched types
|
2019-07-09 01:44:46 -05:00
|
|
|
//~| ERROR mismatched types
|
2019-12-13 16:33:58 -06:00
|
|
|
//~| ERROR mismatched types
|
2017-01-19 08:14:02 -06:00
|
|
|
_ => {},
|
|
|
|
}
|
|
|
|
}
|