summary refs log tree commit diff
path: root/src/test/ui/parser/match-vec-invalid.rs
blob: e5e85ba8ca602c48f3f8ce82d6eb1ba769d8b3fd (plain)
1
2
3
4
5
6
7
fn main() {
    let a = Vec::new();
    match a {
        [1, tail.., tail..] => {}, //~ ERROR: expected one of `,` or `@`, found `..`
        _ => ()
    }
}