mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-02 15:56:09 +03:00
(pat, ..,) is now syntactically legal.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user