We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 83aa6f0 commit 0663c24Copy full SHA for 0663c24
tests/data/parser/err/0007_stray_curly_in_file.rs
@@ -0,0 +1,9 @@
1
+}
2
+
3
+struct S;
4
5
6
7
+fn foo(){}
8
9
tests/data/parser/err/0007_stray_curly_in_file.txt
@@ -0,0 +1,28 @@
+FILE@[0; 31)
+ ERROR@[0; 3)
+ err: `expected item`
+ R_CURLY@[0; 1)
+ WHITESPACE@[1; 3)
+ STRUCT_ITEM@[3; 14)
+ STRUCT_KW@[3; 9)
+ WHITESPACE@[9; 10)
+ IDENT@[10; 11)
10
+ SEMI@[11; 12)
11
+ WHITESPACE@[12; 14)
12
+ ERROR@[14; 17)
13
14
+ R_CURLY@[14; 15)
15
+ WHITESPACE@[15; 17)
16
+ FN_ITEM@[17; 29)
17
+ FN_KW@[17; 19)
18
+ WHITESPACE@[19; 20)
19
+ IDENT@[20; 23)
20
+ L_PAREN@[23; 24)
21
+ R_PAREN@[24; 25)
22
+ L_CURLY@[25; 26)
23
+ R_CURLY@[26; 27)
24
+ WHITESPACE@[27; 29)
25
+ ERROR@[29; 31)
26
27
+ R_CURLY@[29; 30)
28
+ WHITESPACE@[30; 31)
0 commit comments