1 // Here we test that `..` is allowed in all pattern locations *syntactically*.
2 // The semantic test is in `rest-pat-semantic-disallowed.rs`.
8 macro_rules! accept_pat {
38 let (..); // This is interpreted as a tuple pattern, not a parenthesis one.
39 let (..,); // Allowing trailing comma.
40 let (.., .., ..); // Duplicates also.
41 let (.., P, ..); // Including with things in between.
43 // Tuple struct (same idea as for tuple patterns):
49 // Array/Slice (like with tuple patterns):
55 // Random walk to guard against special casing: