diff options
author | Aleksey Kladov <[email protected]> | 2018-01-07 11:56:08 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-01-07 11:56:08 +0000 |
commit | 9e4052cc2ee12751ba94909ff479bd03df141ac4 (patch) | |
tree | 2e7c3a063369c5151fd851910c997e5d1020a164 /tests/data/parser/err | |
parent | 18f9e50b2d1aaf91992be9fd2f2a7e1866a943d3 (diff) |
Test utils
Diffstat (limited to 'tests/data/parser/err')
-rw-r--r-- | tests/data/parser/err/0001_item_recovery_in_file.rs | 3 | ||||
-rw-r--r-- | tests/data/parser/err/0001_item_recovery_in_file.txt | 14 |
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 @@ | |||
1 | if match | ||
2 | |||
3 | struct 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 @@ | |||
1 | FILE@[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) | ||