diff options
Diffstat (limited to 'crates/ra_syntax/test_data/parser/err/0034_bad_box_pattern.rast')
-rw-r--r-- | crates/ra_syntax/test_data/parser/err/0034_bad_box_pattern.rast | 96 |
1 files changed, 96 insertions, 0 deletions
diff --git a/crates/ra_syntax/test_data/parser/err/0034_bad_box_pattern.rast b/crates/ra_syntax/test_data/parser/err/0034_bad_box_pattern.rast new file mode 100644 index 000000000..2c91b6841 --- /dev/null +++ b/crates/ra_syntax/test_data/parser/err/0034_bad_box_pattern.rast | |||
@@ -0,0 +1,96 @@ | |||
1 | SOURCE_FILE@[0; 91) | ||
2 | FN_DEF@[0; 89) | ||
3 | FN_KW@[0; 2) "fn" | ||
4 | WHITESPACE@[2; 3) " " | ||
5 | NAME@[3; 7) | ||
6 | IDENT@[3; 7) "main" | ||
7 | PARAM_LIST@[7; 9) | ||
8 | L_PAREN@[7; 8) "(" | ||
9 | R_PAREN@[8; 9) ")" | ||
10 | WHITESPACE@[9; 10) " " | ||
11 | BLOCK_EXPR@[10; 89) | ||
12 | BLOCK@[10; 89) | ||
13 | L_CURLY@[10; 11) "{" | ||
14 | WHITESPACE@[11; 16) "\n " | ||
15 | LET_STMT@[16; 27) | ||
16 | LET_KW@[16; 19) "let" | ||
17 | WHITESPACE@[19; 20) " " | ||
18 | BIND_PAT@[20; 27) | ||
19 | REF_KW@[20; 23) "ref" | ||
20 | WHITESPACE@[23; 24) " " | ||
21 | ERROR@[24; 27) | ||
22 | BOX_KW@[24; 27) "box" | ||
23 | WHITESPACE@[27; 28) " " | ||
24 | EXPR_STMT@[28; 35) | ||
25 | BIN_EXPR@[28; 34) | ||
26 | PATH_EXPR@[28; 29) | ||
27 | PATH@[28; 29) | ||
28 | PATH_SEGMENT@[28; 29) | ||
29 | NAME_REF@[28; 29) | ||
30 | IDENT@[28; 29) "i" | ||
31 | WHITESPACE@[29; 30) " " | ||
32 | EQ@[30; 31) "=" | ||
33 | WHITESPACE@[31; 32) " " | ||
34 | TUPLE_EXPR@[32; 34) | ||
35 | L_PAREN@[32; 33) "(" | ||
36 | R_PAREN@[33; 34) ")" | ||
37 | SEMI@[34; 35) ";" | ||
38 | WHITESPACE@[35; 40) "\n " | ||
39 | LET_STMT@[40; 51) | ||
40 | LET_KW@[40; 43) "let" | ||
41 | WHITESPACE@[43; 44) " " | ||
42 | BIND_PAT@[44; 51) | ||
43 | MUT_KW@[44; 47) "mut" | ||
44 | WHITESPACE@[47; 48) " " | ||
45 | ERROR@[48; 51) | ||
46 | BOX_KW@[48; 51) "box" | ||
47 | WHITESPACE@[51; 52) " " | ||
48 | EXPR_STMT@[52; 59) | ||
49 | BIN_EXPR@[52; 58) | ||
50 | PATH_EXPR@[52; 53) | ||
51 | PATH@[52; 53) | ||
52 | PATH_SEGMENT@[52; 53) | ||
53 | NAME_REF@[52; 53) | ||
54 | IDENT@[52; 53) "i" | ||
55 | WHITESPACE@[53; 54) " " | ||
56 | EQ@[54; 55) "=" | ||
57 | WHITESPACE@[55; 56) " " | ||
58 | TUPLE_EXPR@[56; 58) | ||
59 | L_PAREN@[56; 57) "(" | ||
60 | R_PAREN@[57; 58) ")" | ||
61 | SEMI@[58; 59) ";" | ||
62 | WHITESPACE@[59; 64) "\n " | ||
63 | LET_STMT@[64; 79) | ||
64 | LET_KW@[64; 67) "let" | ||
65 | WHITESPACE@[67; 68) " " | ||
66 | BIND_PAT@[68; 79) | ||
67 | REF_KW@[68; 71) "ref" | ||
68 | WHITESPACE@[71; 72) " " | ||
69 | MUT_KW@[72; 75) "mut" | ||
70 | WHITESPACE@[75; 76) " " | ||
71 | ERROR@[76; 79) | ||
72 | BOX_KW@[76; 79) "box" | ||
73 | WHITESPACE@[79; 80) " " | ||
74 | EXPR_STMT@[80; 87) | ||
75 | BIN_EXPR@[80; 86) | ||
76 | PATH_EXPR@[80; 81) | ||
77 | PATH@[80; 81) | ||
78 | PATH_SEGMENT@[80; 81) | ||
79 | NAME_REF@[80; 81) | ||
80 | IDENT@[80; 81) "i" | ||
81 | WHITESPACE@[81; 82) " " | ||
82 | EQ@[82; 83) "=" | ||
83 | WHITESPACE@[83; 84) " " | ||
84 | TUPLE_EXPR@[84; 86) | ||
85 | L_PAREN@[84; 85) "(" | ||
86 | R_PAREN@[85; 86) ")" | ||
87 | SEMI@[86; 87) ";" | ||
88 | WHITESPACE@[87; 88) "\n" | ||
89 | R_CURLY@[88; 89) "}" | ||
90 | WHITESPACE@[89; 91) "\n\n" | ||
91 | error [24; 24): expected a name | ||
92 | error [27; 27): expected SEMI | ||
93 | error [48; 48): expected a name | ||
94 | error [51; 51): expected SEMI | ||
95 | error [76; 76): expected a name | ||
96 | error [79; 79): expected SEMI | ||