]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0029-teach.rs
Suggest `if let`/`let_else` for refutable pat in `let`
[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 }