(pat, ..,) is now syntactically legal.
This commit is contained in:
parent
06e5ae5c82
commit
e3cdadd73f
@ -1,6 +1,7 @@
|
||||
// check-pass
|
||||
|
||||
fn main() {
|
||||
match (0, 1, 2) {
|
||||
(pat, ..,) => {}
|
||||
//~^ ERROR trailing comma is not permitted after `..`
|
||||
}
|
||||
}
|
||||
|
@ -1,8 +0,0 @@
|
||||
error: trailing comma is not permitted after `..`
|
||||
--> $DIR/pat-tuple-2.rs:3:17
|
||||
|
|
||||
LL | (pat, ..,) => {}
|
||||
| ^ trailing comma is not permitted after `..`
|
||||
|
||||
error: aborting due to previous error
|
||||
|
Loading…
Reference in New Issue
Block a user