rust/tests/ui/error-codes/E0029.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
184 B
Rust
Raw Normal View History

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