aboutsummaryrefslogtreecommitdiff
path: root/tests/data
diff options
context:
space:
mode:
authorbors[bot] <bors[bot]@users.noreply.github.com>2018-01-28 10:02:15 +0000
committerbors[bot] <bors[bot]@users.noreply.github.com>2018-01-28 10:02:15 +0000
commit37ee4c4c2afc1df536f50a776ac16dab69a67058 (patch)
treed5fa1fb60be28d819300eb4aec9df0dfe6200303 /tests/data
parent469654e08867b60c8a499fb3751a1c26e0b90397 (diff)
parent0663c24222ebb2da10c26f690ad508e7b1fae8f9 (diff)
Merge #23
23: Simplify item parsing r=matklad a=matklad
Diffstat (limited to 'tests/data')
-rw-r--r--tests/data/parser/err/0007_stray_curly_in_file.rs9
-rw-r--r--tests/data/parser/err/0007_stray_curly_in_file.txt28
2 files changed, 37 insertions, 0 deletions
diff --git a/tests/data/parser/err/0007_stray_curly_in_file.rs b/tests/data/parser/err/0007_stray_curly_in_file.rs
new file mode 100644
index 000000000..dc869fb78
--- /dev/null
+++ b/tests/data/parser/err/0007_stray_curly_in_file.rs
@@ -0,0 +1,9 @@
1}
2
3struct S;
4
5}
6
7fn foo(){}
8
9}
diff --git a/tests/data/parser/err/0007_stray_curly_in_file.txt b/tests/data/parser/err/0007_stray_curly_in_file.txt
new file mode 100644
index 000000000..04bf17bc7
--- /dev/null
+++ b/tests/data/parser/err/0007_stray_curly_in_file.txt
@@ -0,0 +1,28 @@
1FILE@[0; 31)
2 ERROR@[0; 3)
3 err: `expected item`
4 R_CURLY@[0; 1)
5 WHITESPACE@[1; 3)
6 STRUCT_ITEM@[3; 14)
7 STRUCT_KW@[3; 9)
8 WHITESPACE@[9; 10)
9 IDENT@[10; 11)
10 SEMI@[11; 12)
11 WHITESPACE@[12; 14)
12 ERROR@[14; 17)
13 err: `expected item`
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 err: `expected item`
27 R_CURLY@[29; 30)
28 WHITESPACE@[30; 31)