aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/test_data/parser/inline/ok/0144_dot_dot_pat.rs
diff options
context:
space:
mode:
authorDylan MacKenzie <[email protected]>2019-09-15 01:07:36 +0100
committerDylan MacKenzie <[email protected]>2019-09-15 01:08:22 +0100
commit0956323bb7b728da6bff4ad7241a542f4bb4e8e6 (patch)
tree34dfba5ac5339862151480e4c140ec09df7142a3 /crates/ra_syntax/test_data/parser/inline/ok/0144_dot_dot_pat.rs
parentda3815122d743a144db7fe1b7d1fb8dddb987894 (diff)
Generate `dot_dot_test`
Diffstat (limited to 'crates/ra_syntax/test_data/parser/inline/ok/0144_dot_dot_pat.rs')
-rw-r--r--crates/ra_syntax/test_data/parser/inline/ok/0144_dot_dot_pat.rs25
1 files changed, 25 insertions, 0 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0144_dot_dot_pat.rs b/crates/ra_syntax/test_data/parser/inline/ok/0144_dot_dot_pat.rs
new file mode 100644
index 000000000..3262f27e1
--- /dev/null
+++ b/crates/ra_syntax/test_data/parser/inline/ok/0144_dot_dot_pat.rs
@@ -0,0 +1,25 @@
1fn main() {
2 let .. = ();
3 //
4 // Tuples
5 //
6 let (a, ..) = ();
7 let (a, ..,) = ();
8 let Tuple(a, ..) = ();
9 let Tuple(a, ..,) = ();
10 let (.., ..) = ();
11 let Tuple(.., ..) = ();
12 let (.., a, ..) = ();
13 let Tuple(.., a, ..) = ();
14 //
15 // Slices
16 //
17 let [..] = ();
18 let [head, ..] = ();
19 let [head, tail @ ..] = ();
20 let [head, .., cons] = ();
21 let [head, mid @ .., cons] = ();
22 let [head, .., .., cons] = ();
23 let [head, .., mid, tail @ ..] = ();
24 let [head, .., mid, .., cons] = ();
25}