rust/tests/ui/error-codes/E0029.rs
2023-01-11 09:32:08 +00:00

10 lines
184 B
Rust

fn main() {
let s = "hoho";
match s {
"hello" ..= "world" => {}
//~^ ERROR only `char` and numeric types are allowed in range patterns
_ => {}
}
}