diff options
author | Aleksey Kladov <[email protected]> | 2018-01-07 09:32:29 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-01-07 09:32:29 +0000 |
commit | efcfaae34ac7a54e858aad82e6503a7c69d6c550 (patch) | |
tree | 611b74d833d3e852f0fe271db3faebd4e865c097 /tests/data/parser/err | |
parent | f797c81155e9b7371b24801efac3fcbd236fc9ab (diff) |
Tests for partial parse
Diffstat (limited to 'tests/data/parser/err')
-rw-r--r-- | tests/data/parser/err/0000_struct_field_missing_comma.rs | 4 | ||||
-rw-r--r-- | tests/data/parser/err/0000_struct_field_missing_comma.txt | 20 |
2 files changed, 24 insertions, 0 deletions
diff --git a/tests/data/parser/err/0000_struct_field_missing_comma.rs b/tests/data/parser/err/0000_struct_field_missing_comma.rs new file mode 100644 index 000000000..fe5030d89 --- /dev/null +++ b/tests/data/parser/err/0000_struct_field_missing_comma.rs | |||
@@ -0,0 +1,4 @@ | |||
1 | struct S { | ||
2 | a: u32 | ||
3 | b: u32 | ||
4 | } \ No newline at end of file | ||
diff --git a/tests/data/parser/err/0000_struct_field_missing_comma.txt b/tests/data/parser/err/0000_struct_field_missing_comma.txt new file mode 100644 index 000000000..e2e99bb63 --- /dev/null +++ b/tests/data/parser/err/0000_struct_field_missing_comma.txt | |||
@@ -0,0 +1,20 @@ | |||
1 | FILE@[0; 34) | ||
2 | STRUCT_ITEM@[0; 34) err: `expected COMMA` | ||
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; 26) | ||
9 | WHITESPACE@[10; 15) | ||
10 | IDENT@[15; 16) | ||
11 | COLON@[16; 17) | ||
12 | WHITESPACE@[17; 18) | ||
13 | IDENT@[18; 21) | ||
14 | WHITESPACE@[21; 26) | ||
15 | STRUCT_FIELD@[26; 33) | ||
16 | IDENT@[26; 27) | ||
17 | COLON@[27; 28) | ||
18 | WHITESPACE@[28; 29) | ||
19 | IDENT@[29; 32) | ||
20 | WHITESPACE@[32; \ No newline at end of file | ||