aboutsummaryrefslogtreecommitdiff
path: root/tests/data/parser
diff options
context:
space:
mode:
Diffstat (limited to 'tests/data/parser')
-rw-r--r--tests/data/parser/inline/0031_for_type.rs1
-rw-r--r--tests/data/parser/inline/0031_for_type.txt29
2 files changed, 30 insertions, 0 deletions
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 @@
1FILE@[0; 29)
2 TYPE_ITEM@[0; 29)
3 TYPE_KW@[0; 4)
4 NAME@[4; 7)
5 WHITESPACE@[4; 5)
6 IDENT@[5; 6) "A"
7 WHITESPACE@[6; 7)
8 EQ@[7; 8)
9 FOR_TYPE@[8; 27)
10 WHITESPACE@[8; 9)
11 FOR_KW@[9; 12)
12 TYPE_PARAM_LIST@[12; 17)
13 L_ANGLE@[12; 13)
14 LIFETIME_PARAM@[13; 15)
15 LIFETIME@[13; 15) "'a"
16 R_ANGLE@[15; 16)
17 WHITESPACE@[16; 17)
18 FN_POINTER_TYPE@[17; 27)
19 FN_KW@[17; 19)
20 L_PAREN@[19; 20)
21 R_PAREN@[20; 21)
22 WHITESPACE@[21; 22)
23 THIN_ARROW@[22; 24)
24 TUPLE_TYPE@[24; 27)
25 WHITESPACE@[24; 25)
26 L_PAREN@[25; 26)
27 R_PAREN@[26; 27)
28 SEMI@[27; 28)
29 WHITESPACE@[28; 29)