diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/data/parser/ok/0005_fn_item.rs | 2 | ||||
-rw-r--r-- | tests/data/parser/ok/0005_fn_item.txt | 12 |
2 files changed, 14 insertions, 0 deletions
diff --git a/tests/data/parser/ok/0005_fn_item.rs b/tests/data/parser/ok/0005_fn_item.rs new file mode 100644 index 000000000..03210551c --- /dev/null +++ b/tests/data/parser/ok/0005_fn_item.rs | |||
@@ -0,0 +1,2 @@ | |||
1 | fn foo() { | ||
2 | } | ||
diff --git a/tests/data/parser/ok/0005_fn_item.txt b/tests/data/parser/ok/0005_fn_item.txt new file mode 100644 index 000000000..e37129ff1 --- /dev/null +++ b/tests/data/parser/ok/0005_fn_item.txt | |||
@@ -0,0 +1,12 @@ | |||
1 | FILE@[0; 13) | ||
2 | FN_ITEM@[0; 13) | ||
3 | FN_KW@[0; 2) | ||
4 | WHITESPACE@[2; 3) | ||
5 | IDENT@[3; 6) | ||
6 | L_PAREN@[6; 7) | ||
7 | R_PAREN@[7; 8) | ||
8 | WHITESPACE@[8; 9) | ||
9 | L_CURLY@[9; 10) | ||
10 | WHITESPACE@[10; 11) | ||
11 | R_CURLY@[11; 12) | ||
12 | WHITESPACE@[12; 13) | ||