rust/tests/ui/parser/pat-tuple-3.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

7 lines
134 B
Rust
Raw Normal View History

2016-05-12 13:17:02 +00:00
fn main() {
match (0, 1, 2) {
(.., pat, ..) => {}
//~^ ERROR `..` can only be used once per tuple pattern
2016-05-12 13:17:02 +00:00
}
}