rust/src/test/compile-fail/alt-vec-invalid.rs

8 lines
136 B
Rust
Raw Normal View History

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