diff options
Diffstat (limited to 'crates/ra_syntax/test_data/parser/inline/err/0006_unsafe_block_in_mod.rast')
-rw-r--r-- | crates/ra_syntax/test_data/parser/inline/err/0006_unsafe_block_in_mod.rast | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/err/0006_unsafe_block_in_mod.rast b/crates/ra_syntax/test_data/parser/inline/err/0006_unsafe_block_in_mod.rast new file mode 100644 index 000000000..690acdca3 --- /dev/null +++ b/crates/ra_syntax/test_data/parser/inline/err/0006_unsafe_block_in_mod.rast | |||
@@ -0,0 +1,37 @@ | |||
1 | SOURCE_FILE@[0; 33) | ||
2 | FN_DEF@[0; 10) | ||
3 | FN_KW@[0; 2) "fn" | ||
4 | WHITESPACE@[2; 3) " " | ||
5 | NAME@[3; 6) | ||
6 | IDENT@[3; 6) "foo" | ||
7 | PARAM_LIST@[6; 8) | ||
8 | L_PAREN@[6; 7) "(" | ||
9 | R_PAREN@[7; 8) ")" | ||
10 | BLOCK_EXPR@[8; 10) | ||
11 | BLOCK@[8; 10) | ||
12 | L_CURLY@[8; 9) "{" | ||
13 | R_CURLY@[9; 10) "}" | ||
14 | WHITESPACE@[10; 11) " " | ||
15 | ERROR@[11; 17) | ||
16 | UNSAFE_KW@[11; 17) "unsafe" | ||
17 | WHITESPACE@[17; 18) " " | ||
18 | ERROR@[18; 21) | ||
19 | L_CURLY@[18; 19) "{" | ||
20 | WHITESPACE@[19; 20) " " | ||
21 | R_CURLY@[20; 21) "}" | ||
22 | WHITESPACE@[21; 22) " " | ||
23 | FN_DEF@[22; 32) | ||
24 | FN_KW@[22; 24) "fn" | ||
25 | WHITESPACE@[24; 25) " " | ||
26 | NAME@[25; 28) | ||
27 | IDENT@[25; 28) "bar" | ||
28 | PARAM_LIST@[28; 30) | ||
29 | L_PAREN@[28; 29) "(" | ||
30 | R_PAREN@[29; 30) ")" | ||
31 | BLOCK_EXPR@[30; 32) | ||
32 | BLOCK@[30; 32) | ||
33 | L_CURLY@[30; 31) "{" | ||
34 | R_CURLY@[31; 32) "}" | ||
35 | WHITESPACE@[32; 33) "\n" | ||
36 | error [11; 11): expected an item | ||
37 | error [18; 18): expected an item | ||