diff options
Diffstat (limited to 'tests/data/parser')
-rw-r--r-- | tests/data/parser/inline/0063_impl_trait_type.rs | 1 | ||||
-rw-r--r-- | tests/data/parser/inline/0063_impl_trait_type.txt | 39 |
2 files changed, 40 insertions, 0 deletions
diff --git a/tests/data/parser/inline/0063_impl_trait_type.rs b/tests/data/parser/inline/0063_impl_trait_type.rs new file mode 100644 index 000000000..54c5a7c46 --- /dev/null +++ b/tests/data/parser/inline/0063_impl_trait_type.rs | |||
@@ -0,0 +1 @@ | |||
type A = impl Iterator<Item=Foo<'a>> + 'a; | |||
diff --git a/tests/data/parser/inline/0063_impl_trait_type.txt b/tests/data/parser/inline/0063_impl_trait_type.txt new file mode 100644 index 000000000..1a7d8618f --- /dev/null +++ b/tests/data/parser/inline/0063_impl_trait_type.txt | |||
@@ -0,0 +1,39 @@ | |||
1 | FILE@[0; 43) | ||
2 | TYPE_ITEM@[0; 43) | ||
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 | IMPL_TRAIT_TYPE@[8; 41) | ||
10 | WHITESPACE@[8; 9) | ||
11 | IMPL_KW@[9; 13) | ||
12 | PATH@[13; 37) | ||
13 | PATH_SEGMENT@[13; 37) | ||
14 | NAME_REF@[13; 22) | ||
15 | WHITESPACE@[13; 14) | ||
16 | IDENT@[14; 22) "Iterator" | ||
17 | TYPE_ARG_LIST@[22; 37) | ||
18 | L_ANGLE@[22; 23) | ||
19 | ASSOC_TYPE_ARG@[23; 35) | ||
20 | NAME_REF@[23; 27) | ||
21 | IDENT@[23; 27) "Item" | ||
22 | EQ@[27; 28) | ||
23 | PATH_TYPE@[28; 35) | ||
24 | PATH@[28; 35) | ||
25 | PATH_SEGMENT@[28; 35) | ||
26 | NAME_REF@[28; 31) | ||
27 | IDENT@[28; 31) "Foo" | ||
28 | TYPE_ARG_LIST@[31; 35) | ||
29 | L_ANGLE@[31; 32) | ||
30 | LIFETIME_ARG@[32; 34) | ||
31 | LIFETIME@[32; 34) "'a" | ||
32 | R_ANGLE@[34; 35) | ||
33 | R_ANGLE@[35; 36) | ||
34 | WHITESPACE@[36; 37) | ||
35 | PLUS@[37; 38) | ||
36 | WHITESPACE@[38; 39) | ||
37 | LIFETIME@[39; 41) "'a" | ||
38 | SEMI@[41; 42) | ||
39 | WHITESPACE@[42; 43) | ||