2012-12-08 20:22:43 +00:00
|
|
|
fn main() {
|
2019-07-24 02:30:37 +02:00
|
|
|
let a: &[u8] = &[];
|
2012-12-08 20:22:43 +00:00
|
|
|
match a {
|
2019-07-08 01:58:28 +02: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 20:22:43 +00:00
|
|
|
_ => ()
|
|
|
|
}
|
|
|
|
}
|
2019-07-24 02:30:37 +02:00
|
|
|
|
|
|
|
const RECOVERY_WITNESS: () = 0; //~ ERROR mismatched types
|