blob: 3ff8cb348e76a9c081e4a169ad9f4ac45d6bc1e7 [file] [log] [blame]
// compile-flags: -Z teach
fn main() {
let s = "hoho";
match s {
"hello" ..= "world" => {}
//~^ ERROR only `char` and numeric types are allowed in range patterns
_ => {}
}
}