aboutsummaryrefslogtreecommitdiff
path: root/crates/libsyntax2
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-08-13 16:31:28 +0100
committerAleksey Kladov <[email protected]>2018-08-13 16:31:28 +0100
commitd642c486164632545d93c204c3ba2377207b6c83 (patch)
treebe6465d4ee6b9d9a7a594c1a2ac0b9ee6e9e22ed /crates/libsyntax2
parent51f7f937a569680ddb0b2bbca2a74f861802898b (diff)
forgotten test
Diffstat (limited to 'crates/libsyntax2')
-rw-r--r--crates/libsyntax2/tests/data/parser/inline/0100_dyn_trait_type.rs1
-rw-r--r--crates/libsyntax2/tests/data/parser/inline/0100_dyn_trait_type.txt39
2 files changed, 40 insertions, 0 deletions
diff --git a/crates/libsyntax2/tests/data/parser/inline/0100_dyn_trait_type.rs b/crates/libsyntax2/tests/data/parser/inline/0100_dyn_trait_type.rs
new file mode 100644
index 000000000..c3ecabb99
--- /dev/null
+++ b/crates/libsyntax2/tests/data/parser/inline/0100_dyn_trait_type.rs
@@ -0,0 +1 @@
type A = dyn Iterator<Item=Foo<'a>> + 'a;
diff --git a/crates/libsyntax2/tests/data/parser/inline/0100_dyn_trait_type.txt b/crates/libsyntax2/tests/data/parser/inline/0100_dyn_trait_type.txt
new file mode 100644
index 000000000..7cf0f3aba
--- /dev/null
+++ b/crates/libsyntax2/tests/data/parser/inline/0100_dyn_trait_type.txt
@@ -0,0 +1,39 @@
1FILE@[0; 42)
2 TYPE_DEF@[0; 41)
3 TYPE_KW@[0; 4)
4 WHITESPACE@[4; 5)
5 NAME@[5; 6)
6 IDENT@[5; 6) "A"
7 WHITESPACE@[6; 7)
8 EQ@[7; 8)
9 WHITESPACE@[8; 9)
10 DYN_TRAIT_TYPE@[9; 40)
11 DYN_KW@[9; 12)
12 WHITESPACE@[12; 13)
13 PATH@[13; 35)
14 PATH_SEGMENT@[13; 35)
15 NAME_REF@[13; 21)
16 IDENT@[13; 21) "Iterator"
17 TYPE_ARG_LIST@[21; 35)
18 L_ANGLE@[21; 22)
19 ASSOC_TYPE_ARG@[22; 34)
20 NAME_REF@[22; 26)
21 IDENT@[22; 26) "Item"
22 EQ@[26; 27)
23 PATH_TYPE@[27; 34)
24 PATH@[27; 34)
25 PATH_SEGMENT@[27; 34)
26 NAME_REF@[27; 30)
27 IDENT@[27; 30) "Foo"
28 TYPE_ARG_LIST@[30; 34)
29 L_ANGLE@[30; 31)
30 LIFETIME_ARG@[31; 33)
31 LIFETIME@[31; 33) "'a"
32 R_ANGLE@[33; 34)
33 R_ANGLE@[34; 35)
34 WHITESPACE@[35; 36)
35 PLUS@[36; 37)
36 WHITESPACE@[37; 38)
37 LIFETIME@[38; 40) "'a"
38 SEMI@[40; 41)
39 WHITESPACE@[41; 42)