diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/data/parser/inline/0038_fn_item_ret_type.rs | 2 | ||||
-rw-r--r-- | tests/data/parser/inline/0038_fn_item_ret_type.txt | 31 |
2 files changed, 33 insertions, 0 deletions
diff --git a/tests/data/parser/inline/0038_fn_item_ret_type.rs b/tests/data/parser/inline/0038_fn_item_ret_type.rs new file mode 100644 index 000000000..d22d8cada --- /dev/null +++ b/tests/data/parser/inline/0038_fn_item_ret_type.rs | |||
@@ -0,0 +1,2 @@ | |||
1 | fn foo() {} | ||
2 | fn bar() -> () {} | ||
diff --git a/tests/data/parser/inline/0038_fn_item_ret_type.txt b/tests/data/parser/inline/0038_fn_item_ret_type.txt new file mode 100644 index 000000000..f7802c54e --- /dev/null +++ b/tests/data/parser/inline/0038_fn_item_ret_type.txt | |||
@@ -0,0 +1,31 @@ | |||
1 | FILE@[0; 30) | ||
2 | FN_ITEM@[0; 12) | ||
3 | FN_KW@[0; 2) | ||
4 | NAME@[2; 6) | ||
5 | WHITESPACE@[2; 3) | ||
6 | IDENT@[3; 6) "foo" | ||
7 | L_PAREN@[6; 7) | ||
8 | R_PAREN@[7; 8) | ||
9 | BLOCK@[8; 12) | ||
10 | WHITESPACE@[8; 9) | ||
11 | L_CURLY@[9; 10) | ||
12 | R_CURLY@[10; 11) | ||
13 | WHITESPACE@[11; 12) | ||
14 | FN_ITEM@[12; 30) | ||
15 | FN_KW@[12; 14) | ||
16 | NAME@[14; 18) | ||
17 | WHITESPACE@[14; 15) | ||
18 | IDENT@[15; 18) "bar" | ||
19 | L_PAREN@[18; 19) | ||
20 | R_PAREN@[19; 20) | ||
21 | WHITESPACE@[20; 21) | ||
22 | THIN_ARROW@[21; 23) | ||
23 | TUPLE_TYPE@[23; 27) | ||
24 | WHITESPACE@[23; 24) | ||
25 | L_PAREN@[24; 25) | ||
26 | R_PAREN@[25; 26) | ||
27 | WHITESPACE@[26; 27) | ||
28 | BLOCK@[27; 30) | ||
29 | L_CURLY@[27; 28) | ||
30 | R_CURLY@[28; 29) | ||
31 | WHITESPACE@[29; 30) | ||