]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/match-vec-invalid.rs
Stabilize `param_attrs` in Rust 1.39.0
[rust.git] / src / test / ui / parser / match-vec-invalid.rs
1 fn main() {
2     let a: &[u8] = &[];
3     match a {
4         [1, tail @ .., tail @ ..] => {},
5         //~^ ERROR identifier `tail` is bound more than once in the same pattern
6         //~| ERROR subslice patterns are unstable
7         //~| ERROR subslice patterns are unstable
8         //~| ERROR `..` can only be used once per slice pattern
9         _ => ()
10     }
11 }
12
13 const RECOVERY_WITNESS: () = 0; //~ ERROR mismatched types