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

8 lines
140 B
Rust
Raw Normal View History

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