rust/src/test/ui/parser/match-vec-invalid.rs

8 lines
159 B
Rust

fn main() {
let a = Vec::new();
match a {
[1, tail.., tail..] => {}, //~ ERROR: expected one of `,` or `@`, found `..`
_ => ()
}
}