diff options
author | bors[bot] <bors[bot]@users.noreply.github.com> | 2018-01-28 18:21:35 +0000 |
---|---|---|
committer | bors[bot] <bors[bot]@users.noreply.github.com> | 2018-01-28 18:21:35 +0000 |
commit | ab81e4c7b4383a153145752059be59e17571fad3 (patch) | |
tree | 131a740b555157b665f2094897697192e499af6e /tests/data/parser/err | |
parent | 08def60f16a222895b242d907163d914348894c7 (diff) | |
parent | b9cbbfa4052a080d658ce32dedac03c4621ce5ed (diff) |
Merge #29
29: Structs r=matklad a=matklad
r? @CAD97
Diffstat (limited to 'tests/data/parser/err')
-rw-r--r-- | tests/data/parser/err/0009_broken_struct_type_parameter.rs | 5 | ||||
-rw-r--r-- | tests/data/parser/err/0009_broken_struct_type_parameter.txt | 42 |
2 files changed, 47 insertions, 0 deletions
diff --git a/tests/data/parser/err/0009_broken_struct_type_parameter.rs b/tests/data/parser/err/0009_broken_struct_type_parameter.rs new file mode 100644 index 000000000..0dd30d0bd --- /dev/null +++ b/tests/data/parser/err/0009_broken_struct_type_parameter.rs | |||
@@ -0,0 +1,5 @@ | |||
1 | struct S<90 + 2> { | ||
2 | f: u32 | ||
3 | } | ||
4 | |||
5 | struct T; | ||
diff --git a/tests/data/parser/err/0009_broken_struct_type_parameter.txt b/tests/data/parser/err/0009_broken_struct_type_parameter.txt new file mode 100644 index 000000000..c6b1adb0c --- /dev/null +++ b/tests/data/parser/err/0009_broken_struct_type_parameter.txt | |||
@@ -0,0 +1,42 @@ | |||
1 | FILE@[0; 43) | ||
2 | STRUCT_ITEM@[0; 12) | ||
3 | STRUCT_KW@[0; 6) | ||
4 | WHITESPACE@[6; 7) | ||
5 | IDENT@[7; 8) | ||
6 | TYPE_PARAM_LIST@[8; 12) | ||
7 | L_ANGLE@[8; 9) | ||
8 | ERROR@[9; 12) | ||
9 | err: `expected type parameter` | ||
10 | INT_NUMBER@[9; 11) | ||
11 | WHITESPACE@[11; 12) | ||
12 | err: `expected COMMA` | ||
13 | err: `expected R_ANGLE` | ||
14 | err: `expected `;`, `{`, or `(`` | ||
15 | ERROR@[12; 14) | ||
16 | err: `expected item` | ||
17 | PLUS@[12; 13) | ||
18 | WHITESPACE@[13; 14) | ||
19 | ERROR@[14; 15) | ||
20 | err: `expected item` | ||
21 | INT_NUMBER@[14; 15) | ||
22 | ERROR@[15; 17) | ||
23 | err: `expected item` | ||
24 | R_ANGLE@[15; 16) | ||
25 | WHITESPACE@[16; 17) | ||
26 | ERROR@[17; 33) | ||
27 | err: `expected item` | ||
28 | L_CURLY@[17; 18) | ||
29 | WHITESPACE@[18; 23) | ||
30 | IDENT@[23; 24) | ||
31 | COLON@[24; 25) | ||
32 | WHITESPACE@[25; 26) | ||
33 | IDENT@[26; 29) | ||
34 | WHITESPACE@[29; 30) | ||
35 | R_CURLY@[30; 31) | ||
36 | WHITESPACE@[31; 33) | ||
37 | STRUCT_ITEM@[33; 43) | ||
38 | STRUCT_KW@[33; 39) | ||
39 | WHITESPACE@[39; 40) | ||
40 | IDENT@[40; 41) | ||
41 | SEMI@[41; 42) | ||
42 | WHITESPACE@[42; 43) | ||