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

11 lines
212 B
Rust

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