rust/src/test/compile-fail/match-vec-invalid.rs
2013-05-27 17:28:39 -04:00

8 lines
136 B
Rust

fn main() {
let a = ~[];
match a {
[1, ..tail, ..tail] => {}, //~ ERROR: unexpected token: `..`
_ => ()
}
}