]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0029-teach.rs
Rollup merge of #103283 - nbarrios1337:unsafe-impl-suggestions, r=cjgillot
[rust.git] / src / test / ui / error-codes / E0029-teach.rs
1 // compile-flags: -Z teach
2
3 fn main() {
4     let s = "hoho";
5
6     match s {
7         "hello" ..= "world" => {}
8         //~^ ERROR only `char` and numeric types are allowed in range patterns
9         _ => {}
10     }
11 }