aboutsummaryrefslogtreecommitdiff
path: root/tests/data/parser
diff options
context:
space:
mode:
Diffstat (limited to 'tests/data/parser')
-rw-r--r--tests/data/parser/err/0003_C++_semicolon.rs4
-rw-r--r--tests/data/parser/err/0003_C++_semicolon.txt27
2 files changed, 31 insertions, 0 deletions
diff --git a/tests/data/parser/err/0003_C++_semicolon.rs b/tests/data/parser/err/0003_C++_semicolon.rs
new file mode 100644
index 000000000..009312270
--- /dev/null
+++ b/tests/data/parser/err/0003_C++_semicolon.rs
@@ -0,0 +1,4 @@
1struct S {
2 a: i32,
3 b: String,
4}; \ No newline at end of file
diff --git a/tests/data/parser/err/0003_C++_semicolon.txt b/tests/data/parser/err/0003_C++_semicolon.txt
new file mode 100644
index 000000000..9308bb330
--- /dev/null
+++ b/tests/data/parser/err/0003_C++_semicolon.txt
@@ -0,0 +1,27 @@
1FILE@[0; 40)
2 STRUCT_ITEM@[0; 39)
3 STRUCT_KW@[0; 6)
4 WHITESPACE@[6; 7)
5 IDENT@[7; 8)
6 WHITESPACE@[8; 9)
7 L_CURLY@[9; 10)
8 STRUCT_FIELD@[10; 21)
9 WHITESPACE@[10; 15)
10 IDENT@[15; 16)
11 COLON@[16; 17)
12 WHITESPACE@[17; 18)
13 IDENT@[18; 21)
14 COMMA@[21; 22)
15 STRUCT_FIELD@[22; 36)
16 WHITESPACE@[22; 27)
17 IDENT@[27; 28)
18 COLON@[28; 29)
19 WHITESPACE@[29; 30)
20 IDENT@[30; 36)
21 COMMA@[36; 37)
22 WHITESPACE@[37; 38)
23 R_CURLY@[38; 39)
24 ERROR@[39; 40)
25 err: `expected item, found `;`
26consider removing this semicolon`
27 SEMI@[39; 40)