diff options
Diffstat (limited to 'tests/data/parser/err/0010_unsafe_lambda_block.txt')
-rw-r--r-- | tests/data/parser/err/0010_unsafe_lambda_block.txt | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/tests/data/parser/err/0010_unsafe_lambda_block.txt b/tests/data/parser/err/0010_unsafe_lambda_block.txt new file mode 100644 index 000000000..a8791a595 --- /dev/null +++ b/tests/data/parser/err/0010_unsafe_lambda_block.txt | |||
@@ -0,0 +1,40 @@ | |||
1 | FILE@[0; 42) | ||
2 | FN_ITEM@[0; 42) | ||
3 | FN_KW@[0; 2) | ||
4 | NAME@[2; 7) | ||
5 | WHITESPACE@[2; 3) | ||
6 | IDENT@[3; 7) "main" | ||
7 | PARAM_LIST@[7; 10) | ||
8 | L_PAREN@[7; 8) | ||
9 | R_PAREN@[8; 9) | ||
10 | WHITESPACE@[9; 10) | ||
11 | BLOCK_EXPR@[10; 42) | ||
12 | L_CURLY@[10; 11) | ||
13 | LAMBDA_EXPR@[11; 25) | ||
14 | PARAM_LIST@[11; 19) | ||
15 | WHITESPACE@[11; 16) | ||
16 | PIPE@[16; 17) | ||
17 | PIPE@[17; 18) | ||
18 | WHITESPACE@[18; 19) | ||
19 | THIN_ARROW@[19; 21) | ||
20 | TUPLE_TYPE@[21; 25) | ||
21 | WHITESPACE@[21; 22) | ||
22 | L_PAREN@[22; 23) | ||
23 | R_PAREN@[23; 24) | ||
24 | WHITESPACE@[24; 25) | ||
25 | err: `expected block` | ||
26 | EXPR_STMT@[25; 40) | ||
27 | BLOCK_EXPR@[25; 38) | ||
28 | UNSAFE_KW@[25; 31) | ||
29 | WHITESPACE@[31; 32) | ||
30 | L_CURLY@[32; 33) | ||
31 | TUPLE_EXPR@[33; 37) | ||
32 | WHITESPACE@[33; 34) | ||
33 | L_PAREN@[34; 35) | ||
34 | R_PAREN@[35; 36) | ||
35 | WHITESPACE@[36; 37) | ||
36 | R_CURLY@[37; 38) | ||
37 | SEMI@[38; 39) | ||
38 | WHITESPACE@[39; 40) | ||
39 | R_CURLY@[40; 41) | ||
40 | WHITESPACE@[41; 42) | ||