aboutsummaryrefslogtreecommitdiff
path: root/tests/data/parser/inline/0097_param_list_opt_patterns.txt
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-08-08 16:34:26 +0100
committerAleksey Kladov <[email protected]>2018-08-08 16:34:26 +0100
commit8f21afacfc981e93f2ad78cd340e9b6c0e821d92 (patch)
treede7edde0b99d913c9f6ec049f794e71a26f1cecc /tests/data/parser/inline/0097_param_list_opt_patterns.txt
parentde7b1887ae46c78c3c0abf6d264b2649b1b5cf0b (diff)
Optional patterns in fn types
Diffstat (limited to 'tests/data/parser/inline/0097_param_list_opt_patterns.txt')
-rw-r--r--tests/data/parser/inline/0097_param_list_opt_patterns.txt43
1 files changed, 43 insertions, 0 deletions
diff --git a/tests/data/parser/inline/0097_param_list_opt_patterns.txt b/tests/data/parser/inline/0097_param_list_opt_patterns.txt
new file mode 100644
index 000000000..f8a37aebb
--- /dev/null
+++ b/tests/data/parser/inline/0097_param_list_opt_patterns.txt
@@ -0,0 +1,43 @@
1FILE@[0; 35)
2 FN_ITEM@[0; 34)
3 FN_KW@[0; 2)
4 WHITESPACE@[2; 3)
5 NAME@[3; 6)
6 IDENT@[3; 6) "foo"
7 TYPE_PARAM_LIST@[6; 30)
8 L_ANGLE@[6; 7)
9 TYPE_PARAM@[7; 29)
10 NAME@[7; 8)
11 IDENT@[7; 8) "F"
12 COLON@[8; 9)
13 WHITESPACE@[9; 10)
14 PATH@[10; 29)
15 PATH_SEGMENT@[10; 29)
16 NAME_REF@[10; 15)
17 IDENT@[10; 15) "FnMut"
18 PARAM_LIST@[15; 29)
19 L_PAREN@[15; 16)
20 PARAM@[16; 28)
21 REFERENCE_TYPE@[16; 28)
22 AMP@[16; 17)
23 MUT_KW@[17; 20)
24 WHITESPACE@[20; 21)
25 PATH_TYPE@[21; 28)
26 PATH@[21; 28)
27 PATH_SEGMENT@[21; 28)
28 NAME_REF@[21; 24)
29 IDENT@[21; 24) "Foo"
30 TYPE_ARG_LIST@[24; 28)
31 L_ANGLE@[24; 25)
32 LIFETIME_ARG@[25; 27)
33 LIFETIME@[25; 27) "'a"
34 R_ANGLE@[27; 28)
35 R_PAREN@[28; 29)
36 R_ANGLE@[29; 30)
37 PARAM_LIST@[30; 32)
38 L_PAREN@[30; 31)
39 R_PAREN@[31; 32)
40 BLOCK_EXPR@[32; 34)
41 L_CURLY@[32; 33)
42 R_CURLY@[33; 34)
43 WHITESPACE@[34; 35)