From d39198490f878a9ae395af1cf923fb7375de4548 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Mon, 30 Jul 2018 15:32:19 +0300 Subject: fn ret type --- tests/data/parser/inline/0038_fn_item_ret_type.rs | 2 ++ tests/data/parser/inline/0038_fn_item_ret_type.txt | 31 ++++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 tests/data/parser/inline/0038_fn_item_ret_type.rs create mode 100644 tests/data/parser/inline/0038_fn_item_ret_type.txt (limited to 'tests/data') 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 @@ +fn foo() {} +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 @@ +FILE@[0; 30) + FN_ITEM@[0; 12) + FN_KW@[0; 2) + NAME@[2; 6) + WHITESPACE@[2; 3) + IDENT@[3; 6) "foo" + L_PAREN@[6; 7) + R_PAREN@[7; 8) + BLOCK@[8; 12) + WHITESPACE@[8; 9) + L_CURLY@[9; 10) + R_CURLY@[10; 11) + WHITESPACE@[11; 12) + FN_ITEM@[12; 30) + FN_KW@[12; 14) + NAME@[14; 18) + WHITESPACE@[14; 15) + IDENT@[15; 18) "bar" + L_PAREN@[18; 19) + R_PAREN@[19; 20) + WHITESPACE@[20; 21) + THIN_ARROW@[21; 23) + TUPLE_TYPE@[23; 27) + WHITESPACE@[23; 24) + L_PAREN@[24; 25) + R_PAREN@[25; 26) + WHITESPACE@[26; 27) + BLOCK@[27; 30) + L_CURLY@[27; 28) + R_CURLY@[28; 29) + WHITESPACE@[29; 30) -- cgit v1.2.3