summaryrefslogtreecommitdiffstats
path: root/tests/ui/error-codes/E0528.rs
blob: 0a337c9611c8b9b17b29b5fa6287670365acb078 (plain)
1
2
3
4
5
6
7
8
fn main() {
    let r = &[1, 2];
    match r {
        &[a, b, c, rest @ ..] => {
        //~^ ERROR E0528
        }
    }
}