aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/test_data/parser/inline/err/0002_misplaced_label_err.rast
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_syntax/test_data/parser/inline/err/0002_misplaced_label_err.rast')
-rw-r--r--crates/ra_syntax/test_data/parser/inline/err/0002_misplaced_label_err.rast29
1 files changed, 29 insertions, 0 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/err/0002_misplaced_label_err.rast b/crates/ra_syntax/test_data/parser/inline/err/0002_misplaced_label_err.rast
new file mode 100644
index 000000000..01a853d63
--- /dev/null
+++ b/crates/ra_syntax/test_data/parser/inline/err/0002_misplaced_label_err.rast
@@ -0,0 +1,29 @@
1SOURCE_FILE@[0; 30)
2 FN_DEF@[0; 29)
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; 29)
12 BLOCK@[10; 29)
13 L_CURLY@[10; 11) "{"
14 WHITESPACE@[11; 16) "\n "
15 EXPR_STMT@[16; 22)
16 ERROR@[16; 22)
17 LABEL@[16; 22)
18 LIFETIME@[16; 21) "\'loop"
19 COLON@[21; 22) ":"
20 WHITESPACE@[22; 23) " "
21 IMPL_DEF@[23; 27)
22 IMPL_KW@[23; 27) "impl"
23 WHITESPACE@[27; 28) "\n"
24 R_CURLY@[28; 29) "}"
25 WHITESPACE@[29; 30) "\n"
26error [22; 22): expected a loop
27error [22; 22): expected SEMI
28error [27; 27): expected type
29error [27; 27): expected `{`