diff options
Diffstat (limited to 'tests/data/parser/inline')
-rw-r--r-- | tests/data/parser/inline/0039_path_expr.txt | 11 | ||||
-rw-r--r-- | tests/data/parser/inline/0058_type_arg.rs | 1 | ||||
-rw-r--r-- | tests/data/parser/inline/0058_type_arg.txt | 39 |
3 files changed, 46 insertions, 5 deletions
diff --git a/tests/data/parser/inline/0039_path_expr.txt b/tests/data/parser/inline/0039_path_expr.txt index 36a4ace6a..c3fc0c4bf 100644 --- a/tests/data/parser/inline/0039_path_expr.txt +++ b/tests/data/parser/inline/0039_path_expr.txt | |||
@@ -63,11 +63,12 @@ FILE@[0; 68) | |||
63 | TYPE_ARG_LIST@[59; 64) | 63 | TYPE_ARG_LIST@[59; 64) |
64 | COLONCOLON@[59; 61) | 64 | COLONCOLON@[59; 61) |
65 | L_ANGLE@[61; 62) | 65 | L_ANGLE@[61; 62) |
66 | PATH_TYPE@[62; 63) | 66 | TYPE_ARG@[62; 63) |
67 | PATH@[62; 63) | 67 | PATH_TYPE@[62; 63) |
68 | PATH_SEGMENT@[62; 63) | 68 | PATH@[62; 63) |
69 | NAME_REF@[62; 63) | 69 | PATH_SEGMENT@[62; 63) |
70 | IDENT@[62; 63) "b" | 70 | NAME_REF@[62; 63) |
71 | IDENT@[62; 63) "b" | ||
71 | R_ANGLE@[63; 64) | 72 | R_ANGLE@[63; 64) |
72 | SEMI@[64; 65) | 73 | SEMI@[64; 65) |
73 | WHITESPACE@[65; 66) | 74 | WHITESPACE@[65; 66) |
diff --git a/tests/data/parser/inline/0058_type_arg.rs b/tests/data/parser/inline/0058_type_arg.rs new file mode 100644 index 000000000..f0c8cc3a8 --- /dev/null +++ b/tests/data/parser/inline/0058_type_arg.rs | |||
@@ -0,0 +1 @@ | |||
type A = B<'static, i32, Item=u64> | |||
diff --git a/tests/data/parser/inline/0058_type_arg.txt b/tests/data/parser/inline/0058_type_arg.txt new file mode 100644 index 000000000..af4bcedef --- /dev/null +++ b/tests/data/parser/inline/0058_type_arg.txt | |||
@@ -0,0 +1,39 @@ | |||
1 | FILE@[0; 35) | ||
2 | TYPE_ITEM@[0; 35) | ||
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 | PATH_TYPE@[8; 35) | ||
10 | PATH@[8; 35) | ||
11 | PATH_SEGMENT@[8; 35) | ||
12 | NAME_REF@[8; 10) | ||
13 | WHITESPACE@[8; 9) | ||
14 | IDENT@[9; 10) "B" | ||
15 | TYPE_ARG_LIST@[10; 35) | ||
16 | L_ANGLE@[10; 11) | ||
17 | LIFETIME_ARG@[11; 18) | ||
18 | LIFETIME@[11; 18) "'static" | ||
19 | COMMA@[18; 19) | ||
20 | TYPE_ARG@[19; 23) | ||
21 | PATH_TYPE@[19; 23) | ||
22 | PATH@[19; 23) | ||
23 | PATH_SEGMENT@[19; 23) | ||
24 | NAME_REF@[19; 23) | ||
25 | WHITESPACE@[19; 20) | ||
26 | IDENT@[20; 23) "i32" | ||
27 | COMMA@[23; 24) | ||
28 | ASSOC_TYPE_ARG@[24; 33) | ||
29 | WHITESPACE@[24; 25) | ||
30 | IDENT@[25; 29) "Item" | ||
31 | EQ@[29; 30) | ||
32 | PATH_TYPE@[30; 33) | ||
33 | PATH@[30; 33) | ||
34 | PATH_SEGMENT@[30; 33) | ||
35 | NAME_REF@[30; 33) | ||
36 | IDENT@[30; 33) "u64" | ||
37 | R_ANGLE@[33; 34) | ||
38 | WHITESPACE@[34; 35) | ||
39 | err: `expected SEMI` | ||