2017-01-19 15:14:02 +01:00
|
|
|
#![feature(exclusive_range_pattern)]
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
match [5..4, 99..105, 43..44] {
|
2019-07-09 08:44:46 +02:00
|
|
|
[..9, 99..100, _] => {},
|
2019-12-11 10:04:34 +01:00
|
|
|
//~^ ERROR mismatched types
|
2019-07-09 08:44:46 +02:00
|
|
|
//~| ERROR mismatched types
|
2019-12-13 23:33:58 +01:00
|
|
|
//~| ERROR mismatched types
|
2017-01-19 15:14:02 +01:00
|
|
|
_ => {},
|
|
|
|
}
|
|
|
|
}
|