diff options
Diffstat (limited to 'crates/ra_syntax/test_data/parser/err/0010_unsafe_lambda_block.rast')
-rw-r--r-- | crates/ra_syntax/test_data/parser/err/0010_unsafe_lambda_block.rast | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/crates/ra_syntax/test_data/parser/err/0010_unsafe_lambda_block.rast b/crates/ra_syntax/test_data/parser/err/0010_unsafe_lambda_block.rast new file mode 100644 index 000000000..0ffbd25aa --- /dev/null +++ b/crates/ra_syntax/test_data/parser/err/0010_unsafe_lambda_block.rast | |||
@@ -0,0 +1,45 @@ | |||
1 | SOURCE_FILE@[0; 42) | ||
2 | FN_DEF@[0; 41) | ||
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; 41) | ||
12 | BLOCK@[10; 41) | ||
13 | L_CURLY@[10; 11) "{" | ||
14 | WHITESPACE@[11; 16) "\n " | ||
15 | EXPR_STMT@[16; 24) | ||
16 | LAMBDA_EXPR@[16; 24) | ||
17 | PARAM_LIST@[16; 18) | ||
18 | PIPE@[16; 17) "|" | ||
19 | PIPE@[17; 18) "|" | ||
20 | WHITESPACE@[18; 19) " " | ||
21 | RET_TYPE@[19; 24) | ||
22 | THIN_ARROW@[19; 21) "->" | ||
23 | WHITESPACE@[21; 22) " " | ||
24 | TUPLE_TYPE@[22; 24) | ||
25 | L_PAREN@[22; 23) "(" | ||
26 | R_PAREN@[23; 24) ")" | ||
27 | WHITESPACE@[24; 25) " " | ||
28 | EXPR_STMT@[25; 39) | ||
29 | BLOCK_EXPR@[25; 38) | ||
30 | UNSAFE_KW@[25; 31) "unsafe" | ||
31 | WHITESPACE@[31; 32) " " | ||
32 | BLOCK@[32; 38) | ||
33 | L_CURLY@[32; 33) "{" | ||
34 | WHITESPACE@[33; 34) " " | ||
35 | TUPLE_EXPR@[34; 36) | ||
36 | L_PAREN@[34; 35) "(" | ||
37 | R_PAREN@[35; 36) ")" | ||
38 | WHITESPACE@[36; 37) " " | ||
39 | R_CURLY@[37; 38) "}" | ||
40 | SEMI@[38; 39) ";" | ||
41 | WHITESPACE@[39; 40) "\n" | ||
42 | R_CURLY@[40; 41) "}" | ||
43 | WHITESPACE@[41; 42) "\n" | ||
44 | error [24; 24): expected `{` | ||
45 | error [24; 24): expected SEMI | ||