rust/src/test/compile-fail/alt-vec-invalid.rs
2013-03-11 19:01:51 +09:00

8 lines
136 B
Rust

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