aboutsummaryrefslogtreecommitdiff
path: root/tests/data/parser/err
diff options
context:
space:
mode:
Diffstat (limited to 'tests/data/parser/err')
-rw-r--r--tests/data/parser/err/0001_item_recovery_in_file.rs3
-rw-r--r--tests/data/parser/err/0001_item_recovery_in_file.txt14
2 files changed, 17 insertions, 0 deletions
diff --git a/tests/data/parser/err/0001_item_recovery_in_file.rs b/tests/data/parser/err/0001_item_recovery_in_file.rs
new file mode 100644
index 000000000..98f23de1f
--- /dev/null
+++ b/tests/data/parser/err/0001_item_recovery_in_file.rs
@@ -0,0 +1,3 @@
1if match
2
3struct S {} \ No newline at end of file
diff --git a/tests/data/parser/err/0001_item_recovery_in_file.txt b/tests/data/parser/err/0001_item_recovery_in_file.txt
new file mode 100644
index 000000000..730367694
--- /dev/null
+++ b/tests/data/parser/err/0001_item_recovery_in_file.txt
@@ -0,0 +1,14 @@
1FILE@[0; 21)
2 ERROR@[0; 10)
3 err: `expected item`
4 IDENT@[0; 2)
5 WHITESPACE@[2; 3)
6 IDENT@[3; 8)
7 WHITESPACE@[8; 10)
8 STRUCT_ITEM@[10; 21)
9 STRUCT_KW@[10; 16)
10 WHITESPACE@[16; 17)
11 IDENT@[17; 18)
12 WHITESPACE@[18; 19)
13 L_CURLY@[19; 20)
14 R_CURLY@[20; 21)