summary refs log tree commit diff
path: root/src/test/compile-fail/match-vec-invalid.rs
blob: 2cf2d5b93b056c5db559089cc0dd392af5d4d092 (plain)
1
2
3
4
5
6
7
fn main() {
    let a = ~[];
    match a {
        [1, ..tail, ..tail] => {}, //~ ERROR: unexpected token: `..`
        _ => ()
    }
}