From c8910b0683dfc9ad88d440c22cef71c263837997 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sun, 11 Feb 2018 23:32:49 +0300 Subject: G: for type --- tests/data/parser/inline/0031_for_type.rs | 1 + tests/data/parser/inline/0031_for_type.txt | 29 +++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 tests/data/parser/inline/0031_for_type.rs create mode 100644 tests/data/parser/inline/0031_for_type.txt (limited to 'tests') diff --git a/tests/data/parser/inline/0031_for_type.rs b/tests/data/parser/inline/0031_for_type.rs new file mode 100644 index 000000000..4d6a18c6b --- /dev/null +++ b/tests/data/parser/inline/0031_for_type.rs @@ -0,0 +1 @@ +type A = for<'a> fn() -> (); diff --git a/tests/data/parser/inline/0031_for_type.txt b/tests/data/parser/inline/0031_for_type.txt new file mode 100644 index 000000000..0211950bc --- /dev/null +++ b/tests/data/parser/inline/0031_for_type.txt @@ -0,0 +1,29 @@ +FILE@[0; 29) + TYPE_ITEM@[0; 29) + TYPE_KW@[0; 4) + NAME@[4; 7) + WHITESPACE@[4; 5) + IDENT@[5; 6) "A" + WHITESPACE@[6; 7) + EQ@[7; 8) + FOR_TYPE@[8; 27) + WHITESPACE@[8; 9) + FOR_KW@[9; 12) + TYPE_PARAM_LIST@[12; 17) + L_ANGLE@[12; 13) + LIFETIME_PARAM@[13; 15) + LIFETIME@[13; 15) "'a" + R_ANGLE@[15; 16) + WHITESPACE@[16; 17) + FN_POINTER_TYPE@[17; 27) + FN_KW@[17; 19) + L_PAREN@[19; 20) + R_PAREN@[20; 21) + WHITESPACE@[21; 22) + THIN_ARROW@[22; 24) + TUPLE_TYPE@[24; 27) + WHITESPACE@[24; 25) + L_PAREN@[25; 26) + R_PAREN@[26; 27) + SEMI@[27; 28) + WHITESPACE@[28; 29) -- cgit v1.2.3