2018-02-07 19:35:35 -08:00
|
|
|
// compile-flags: -Z teach
|
|
|
|
|
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" => {}
|
2020-09-15 20:34:58 +01:00
|
|
|
//~^ ERROR only `char` and numeric types are allowed in range patterns
|
2016-05-17 15:01:31 +02:00
|
|
|
_ => {}
|
|
|
|
}
|
|
|
|
}
|