]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0528.rs
Suggest `if let`/`let_else` for refutable pat in `let`
[rust.git] / src / test / ui / error-codes / E0528.rs
1 fn main() {
2     let r = &[1, 2];
3     match r {
4         &[a, b, c, rest @ ..] => {
5         //~^ ERROR E0528
6         }
7     }
8 }