diff options
Diffstat (limited to 'crates/ra_syntax/test_data/parser/inline/err/0004_impl_type.rast')
-rw-r--r-- | crates/ra_syntax/test_data/parser/inline/err/0004_impl_type.rast | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/err/0004_impl_type.rast b/crates/ra_syntax/test_data/parser/inline/err/0004_impl_type.rast new file mode 100644 index 000000000..124f0a891 --- /dev/null +++ b/crates/ra_syntax/test_data/parser/inline/err/0004_impl_type.rast | |||
@@ -0,0 +1,79 @@ | |||
1 | SOURCE_FILE@[0; 87) | ||
2 | IMPL_DEF@[0; 12) | ||
3 | IMPL_KW@[0; 4) "impl" | ||
4 | WHITESPACE@[4; 5) " " | ||
5 | PATH_TYPE@[5; 9) | ||
6 | PATH@[5; 9) | ||
7 | PATH_SEGMENT@[5; 9) | ||
8 | NAME_REF@[5; 9) | ||
9 | IDENT@[5; 9) "Type" | ||
10 | WHITESPACE@[9; 10) " " | ||
11 | ITEM_LIST@[10; 12) | ||
12 | L_CURLY@[10; 11) "{" | ||
13 | R_CURLY@[11; 12) "}" | ||
14 | WHITESPACE@[12; 13) "\n" | ||
15 | IMPL_DEF@[13; 33) | ||
16 | IMPL_KW@[13; 17) "impl" | ||
17 | WHITESPACE@[17; 18) " " | ||
18 | PATH_TYPE@[18; 24) | ||
19 | PATH@[18; 24) | ||
20 | PATH_SEGMENT@[18; 24) | ||
21 | NAME_REF@[18; 24) | ||
22 | IDENT@[18; 24) "Trait1" | ||
23 | WHITESPACE@[24; 25) " " | ||
24 | FOR_KW@[25; 28) "for" | ||
25 | WHITESPACE@[28; 29) " " | ||
26 | PATH_TYPE@[29; 30) | ||
27 | PATH@[29; 30) | ||
28 | PATH_SEGMENT@[29; 30) | ||
29 | NAME_REF@[29; 30) | ||
30 | IDENT@[29; 30) "T" | ||
31 | WHITESPACE@[30; 31) " " | ||
32 | ITEM_LIST@[31; 33) | ||
33 | L_CURLY@[31; 32) "{" | ||
34 | R_CURLY@[32; 33) "}" | ||
35 | WHITESPACE@[33; 34) "\n" | ||
36 | IMPL_DEF@[34; 38) | ||
37 | IMPL_KW@[34; 38) "impl" | ||
38 | WHITESPACE@[38; 39) " " | ||
39 | IMPL_DEF@[39; 54) | ||
40 | IMPL_KW@[39; 43) "impl" | ||
41 | WHITESPACE@[43; 44) " " | ||
42 | PATH_TYPE@[44; 51) | ||
43 | PATH@[44; 51) | ||
44 | PATH_SEGMENT@[44; 51) | ||
45 | NAME_REF@[44; 51) | ||
46 | IDENT@[44; 51) "NotType" | ||
47 | WHITESPACE@[51; 52) " " | ||
48 | ITEM_LIST@[52; 54) | ||
49 | L_CURLY@[52; 53) "{" | ||
50 | R_CURLY@[53; 54) "}" | ||
51 | WHITESPACE@[54; 55) "\n" | ||
52 | IMPL_DEF@[55; 70) | ||
53 | IMPL_KW@[55; 59) "impl" | ||
54 | WHITESPACE@[59; 60) " " | ||
55 | PATH_TYPE@[60; 66) | ||
56 | PATH@[60; 66) | ||
57 | PATH_SEGMENT@[60; 66) | ||
58 | NAME_REF@[60; 66) | ||
59 | IDENT@[60; 66) "Trait2" | ||
60 | WHITESPACE@[66; 67) " " | ||
61 | FOR_KW@[67; 70) "for" | ||
62 | WHITESPACE@[70; 71) " " | ||
63 | IMPL_DEF@[71; 86) | ||
64 | IMPL_KW@[71; 75) "impl" | ||
65 | WHITESPACE@[75; 76) " " | ||
66 | PATH_TYPE@[76; 83) | ||
67 | PATH@[76; 83) | ||
68 | PATH_SEGMENT@[76; 83) | ||
69 | NAME_REF@[76; 83) | ||
70 | IDENT@[76; 83) "NotType" | ||
71 | WHITESPACE@[83; 84) " " | ||
72 | ITEM_LIST@[84; 86) | ||
73 | L_CURLY@[84; 85) "{" | ||
74 | R_CURLY@[85; 86) "}" | ||
75 | WHITESPACE@[86; 87) "\n" | ||
76 | error [38; 38): expected trait or type | ||
77 | error [38; 38): expected `{` | ||
78 | error [70; 70): expected trait or type | ||
79 | error [70; 70): expected `{` | ||