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/0009_broken_struct_type_parameter.rs5
-rw-r--r--tests/data/parser/err/0009_broken_struct_type_parameter.txt42
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 @@
1struct S<90 + 2> {
2 f: u32
3}
4
5struct 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 @@
1FILE@[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)