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

8 lines
136 B
Rust
Raw Normal View History

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