diff options
author | Aleksey Kladov <[email protected]> | 2018-07-31 20:41:29 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-07-31 20:41:29 +0100 |
commit | 1af8eb9c08f974a1b3beecfebadeb03144ef337d (patch) | |
tree | cd7d3d253679af61bf43fdee6eb1ea85d2796575 /tests | |
parent | 643d23503527d9fcee32dea4f974b7dd0ee26143 (diff) |
impl trait type
Diffstat (limited to 'tests')
-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) | ||