diff options
Diffstat (limited to 'crates/ra_syntax/test_data/parser/err/0009_broken_struct_type_parameter.rast')
-rw-r--r-- | crates/ra_syntax/test_data/parser/err/0009_broken_struct_type_parameter.rast | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/crates/ra_syntax/test_data/parser/err/0009_broken_struct_type_parameter.rast b/crates/ra_syntax/test_data/parser/err/0009_broken_struct_type_parameter.rast new file mode 100644 index 000000000..ca508ac7c --- /dev/null +++ b/crates/ra_syntax/test_data/parser/err/0009_broken_struct_type_parameter.rast | |||
@@ -0,0 +1,58 @@ | |||
1 | SOURCE_FILE@[0; 43) | ||
2 | STRUCT_DEF@[0; 11) | ||
3 | STRUCT_KW@[0; 6) "struct" | ||
4 | WHITESPACE@[6; 7) " " | ||
5 | NAME@[7; 8) | ||
6 | IDENT@[7; 8) "S" | ||
7 | TYPE_PARAM_LIST@[8; 11) | ||
8 | L_ANGLE@[8; 9) "<" | ||
9 | ERROR@[9; 11) | ||
10 | INT_NUMBER@[9; 11) "90" | ||
11 | WHITESPACE@[11; 12) " " | ||
12 | ERROR@[12; 13) | ||
13 | PLUS@[12; 13) "+" | ||
14 | WHITESPACE@[13; 14) " " | ||
15 | ERROR@[14; 15) | ||
16 | INT_NUMBER@[14; 15) "2" | ||
17 | ERROR@[15; 16) | ||
18 | R_ANGLE@[15; 16) ">" | ||
19 | WHITESPACE@[16; 17) " " | ||
20 | ERROR@[17; 31) | ||
21 | L_CURLY@[17; 18) "{" | ||
22 | WHITESPACE@[18; 23) "\n " | ||
23 | EXPR_STMT@[23; 24) | ||
24 | PATH_EXPR@[23; 24) | ||
25 | PATH@[23; 24) | ||
26 | PATH_SEGMENT@[23; 24) | ||
27 | NAME_REF@[23; 24) | ||
28 | IDENT@[23; 24) "f" | ||
29 | EXPR_STMT@[24; 25) | ||
30 | ERROR@[24; 25) | ||
31 | COLON@[24; 25) ":" | ||
32 | WHITESPACE@[25; 26) " " | ||
33 | PATH_EXPR@[26; 29) | ||
34 | PATH@[26; 29) | ||
35 | PATH_SEGMENT@[26; 29) | ||
36 | NAME_REF@[26; 29) | ||
37 | IDENT@[26; 29) "u32" | ||
38 | WHITESPACE@[29; 30) "\n" | ||
39 | R_CURLY@[30; 31) "}" | ||
40 | WHITESPACE@[31; 33) "\n\n" | ||
41 | STRUCT_DEF@[33; 42) | ||
42 | STRUCT_KW@[33; 39) "struct" | ||
43 | WHITESPACE@[39; 40) " " | ||
44 | NAME@[40; 41) | ||
45 | IDENT@[40; 41) "T" | ||
46 | SEMI@[41; 42) ";" | ||
47 | WHITESPACE@[42; 43) "\n" | ||
48 | error [9; 9): expected type parameter | ||
49 | error [11; 11): expected COMMA | ||
50 | error [11; 11): expected R_ANGLE | ||
51 | error [11; 11): expected `;`, `{`, or `(` | ||
52 | error [12; 12): expected an item | ||
53 | error [14; 14): expected an item | ||
54 | error [15; 15): expected an item | ||
55 | error [17; 17): expected an item | ||
56 | error [24; 24): expected SEMI | ||
57 | error [24; 24): expected expression | ||
58 | error [25; 25): expected SEMI | ||