Skip to content

Commit

Permalink
Generate dot_dot_test
Browse files Browse the repository at this point in the history
  • Loading branch information
ecstatic-morse committed Sep 15, 2019
1 parent da38151 commit 0956323
Show file tree
Hide file tree
Showing 2 changed files with 481 additions and 0 deletions.
25 changes: 25 additions & 0 deletions crates/ra_syntax/test_data/parser/inline/ok/0144_dot_dot_pat.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
fn main() {
let .. = ();
//
// Tuples
//
let (a, ..) = ();
let (a, ..,) = ();
let Tuple(a, ..) = ();
let Tuple(a, ..,) = ();
let (.., ..) = ();
let Tuple(.., ..) = ();
let (.., a, ..) = ();
let Tuple(.., a, ..) = ();
//
// Slices
//
let [..] = ();
let [head, ..] = ();
let [head, tail @ ..] = ();
let [head, .., cons] = ();
let [head, mid @ .., cons] = ();
let [head, .., .., cons] = ();
let [head, .., mid, tail @ ..] = ();
let [head, .., mid, .., cons] = ();
}
Loading

0 comments on commit 0956323

Please sign in to comment.