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

8 lines
157 B
Rust
Raw Normal View History

2016-05-12 08:17:02 -05:00
fn main() {
match 0 {
(pat, ..,) => {}
//~^ ERROR trailing comma is not permitted after `..`
//~| ERROR mismatched types
2016-05-12 08:17:02 -05:00
}
}