]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0029-teach.rs
Auto merge of #75936 - sdroege:chunks-exact-construction-bounds-check, r=nagisa
[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 }