1 error[E0416]: identifier `tail` is bound more than once in the same pattern
2 --> $DIR/match-vec-invalid.rs:4:24
4 LL | [1, tail @ .., tail @ ..] => {},
5 | ^^^^ used in a pattern more than once
7 error[E0658]: subslice patterns are unstable
8 --> $DIR/match-vec-invalid.rs:4:13
10 LL | [1, tail @ .., tail @ ..] => {},
13 = note: for more information, see https://github.com/rust-lang/rust/issues/62254
14 = help: add `#![feature(slice_patterns)]` to the crate attributes to enable
16 error[E0658]: subslice patterns are unstable
17 --> $DIR/match-vec-invalid.rs:4:24
19 LL | [1, tail @ .., tail @ ..] => {},
22 = note: for more information, see https://github.com/rust-lang/rust/issues/62254
23 = help: add `#![feature(slice_patterns)]` to the crate attributes to enable
25 error: `..` can only be used once per slice pattern
26 --> $DIR/match-vec-invalid.rs:4:31
28 LL | [1, tail @ .., tail @ ..] => {},
29 | -- ^^ can only be used once per slice pattern
31 | previously used here
33 error[E0529]: expected an array or slice, found `std::vec::Vec<_>`
34 --> $DIR/match-vec-invalid.rs:4:9
36 LL | [1, tail @ .., tail @ ..] => {},
37 | ^^^^^^^^^^^^^^^^^^^^^^^^^ pattern cannot match with input type `std::vec::Vec<_>`
39 error: aborting due to 5 previous errors
41 Some errors have detailed explanations: E0416, E0529, E0658.
42 For more information about an error, try `rustc --explain E0416`.