1
Fork 0
rust/src/test/ui/error-codes/E0029.rs

10 lines
182 B
Rust
Raw Normal View History

2016-05-17 15:01:31 +02:00
fn main() {
let s = "hoho";
match s {
"hello" ..= "world" => {}
//~^ ERROR only char and numeric types are allowed in range patterns
2016-05-17 15:01:31 +02:00
_ => {}
}
}