aboutsummaryrefslogtreecommitdiff
path: root/crates/syntax
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2020-08-25 16:23:16 +0100
committerGitHub <[email protected]>2020-08-25 16:23:16 +0100
commit32be2d60af7c5c4706dc4ad4957056032d569643 (patch)
treec9a8da95da29f52b35e7f06171a34ecaeb9b8cfa /crates/syntax
parentad7e7d6b8ed5e08f8183320ece5a6c812fe35a57 (diff)
parent18b667cfcb31b2c5e421d12a34b34e83165603f4 (diff)
Merge #5877
5877: Complete `pub` in fields r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/syntax')
-rw-r--r--crates/syntax/test_data/parser/inline/err/0014_struct_field_recover.rast31
-rw-r--r--crates/syntax/test_data/parser/inline/err/0014_struct_field_recover.rs1
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"
29error 12..12: expected COLON
30error 12..12: expected type
31error 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: () }