2016-05-17 15:01:31 +02:00
|
|
|
fn main() {
|
|
|
|
let s = "hoho";
|
|
|
|
|
|
|
|
match s {
|
2018-05-28 19:42:11 -07:00
|
|
|
"hello" ..= "world" => {}
|
2016-08-06 00:33:59 -06:00
|
|
|
//~^ ERROR only char and numeric types are allowed in range patterns
|
2016-05-17 15:01:31 +02:00
|
|
|
_ => {}
|
|
|
|
}
|
|
|
|
}
|