blob: d70ba7a99c5eb79cdeab637840f3fa7aae8ec1be [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
_ => {}
}
}