2012-12-08 14:22:43 -06:00
|
|
|
fn main() {
|
2019-07-23 19:30:37 -05:00
|
|
|
let a: &[u8] = &[];
|
2012-12-08 14:22:43 -06:00
|
|
|
match a {
|
2019-07-07 18:58:28 -05:00
|
|
|
[1, tail @ .., tail @ ..] => {},
|
|
|
|
//~^ ERROR identifier `tail` is bound more than once in the same pattern
|
|
|
|
//~| ERROR `..` can only be used once per slice pattern
|
2012-12-08 14:22:43 -06:00
|
|
|
_ => ()
|
|
|
|
}
|
|
|
|
}
|
2019-07-23 19:30:37 -05:00
|
|
|
|
|
|
|
const RECOVERY_WITNESS: () = 0; //~ ERROR mismatched types
|