diff options
author | Aleksey Kladov <[email protected]> | 2020-08-25 16:20:29 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-08-25 16:22:23 +0100 |
commit | 18b667cfcb31b2c5e421d12a34b34e83165603f4 (patch) | |
tree | c9a8da95da29f52b35e7f06171a34ecaeb9b8cfa /crates/syntax/test_data/parser | |
parent | 6b8bc132dc6dee538964fffa0720480beb5b25dd (diff) |
Complete `pub` in fields
Diffstat (limited to 'crates/syntax/test_data/parser')
-rw-r--r-- | crates/syntax/test_data/parser/inline/err/0014_struct_field_recover.rast | 31 | ||||
-rw-r--r-- | crates/syntax/test_data/parser/inline/err/0014_struct_field_recover.rs | 1 |
2 files changed, 32 insertions, 0 deletions
diff --git a/crates/syntax/test_data/parser/inline/err/0014_struct_field_recover.rast b/crates/syntax/test_data/parser/inline/err/0014_struct_field_recover.rast new file mode 100644 index 000000000..ba8e50993 --- /dev/null +++ b/crates/syntax/test_data/parser/inline/err/0014_struct_field_recover.rast | |||
@@ -0,0 +1,31 @@ | |||
1 | [email protected] | ||
2 | [email protected] | ||
3 | [email protected] "struct" | ||
4 | [email protected] " " | ||
5 | [email protected] | ||
6 | [email protected] "S" | ||
7 | [email protected] " " | ||
8 | [email protected] | ||
9 | [email protected] "{" | ||
10 | [email protected] " " | ||
11 | [email protected] | ||
12 | [email protected] | ||
13 | [email protected] "f" | ||
14 | [email protected] " " | ||
15 | [email protected] | ||
16 | [email protected] | ||
17 | [email protected] "pub" | ||
18 | [email protected] " " | ||
19 | [email protected] | ||
20 | [email protected] "g" | ||
21 | [email protected] ":" | ||
22 | [email protected] " " | ||
23 | [email protected] | ||
24 | [email protected] "(" | ||
25 | [email protected] ")" | ||
26 | [email protected] " " | ||
27 | [email protected] "}" | ||
28 | [email protected] "\n" | ||
29 | error 12..12: expected COLON | ||
30 | error 12..12: expected type | ||
31 | error 12..12: expected COMMA | ||
diff --git a/crates/syntax/test_data/parser/inline/err/0014_struct_field_recover.rs b/crates/syntax/test_data/parser/inline/err/0014_struct_field_recover.rs new file mode 100644 index 000000000..da32227ad --- /dev/null +++ b/crates/syntax/test_data/parser/inline/err/0014_struct_field_recover.rs | |||
@@ -0,0 +1 @@ | |||
struct S { f pub g: () } | |||