Skip to content

Commit 7cd4144

Browse files
committed
(pat, ..,) is now syntactically legal.
1 parent 8a481ef commit 7cd4144

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

src/test/ui/parser/pat-tuple-2.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1+
// check-pass
2+
13
fn main() {
24
match (0, 1, 2) {
35
(pat, ..,) => {}
4-
//~^ ERROR trailing comma is not permitted after `..`
56
}
67
}

src/test/ui/parser/pat-tuple-2.stderr

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)