about summary refs log tree commit diff
path: root/src/test/compile-fail
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2018-03-23 09:27:22 -0500
committerAlex Crichton <alex@alexcrichton.com>2018-03-23 10:16:10 -0700
commit401a93096ddc002c867633a7d8d613e8249b6b06 (patch)
tree078f8838c07785dafb75660b4c11fe72a4a8dd4b /src/test/compile-fail
parentdb2dde9a41aeba6ab0886ebc09c2918b95dd9ddb (diff)
parent062a46fdd1d49b1ccdc4f713433521463224d7d9 (diff)
downloadrust-401a93096ddc002c867633a7d8d613e8249b6b06.tar.gz
rust-401a93096ddc002c867633a7d8d613e8249b6b06.zip
Rollup merge of #49160 - estebank:issue-47457-missing-fields, r=oli-obk
Reduce the diagnostic spam when multiple fields are missing in pattern

Fix #47457.
Diffstat (limited to 'src/test/compile-fail')
-rw-r--r--src/test/compile-fail/struct-pat-derived-error.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/test/compile-fail/struct-pat-derived-error.rs b/src/test/compile-fail/struct-pat-derived-error.rs
index f525ec37375..d3130c4e831 100644
--- a/src/test/compile-fail/struct-pat-derived-error.rs
+++ b/src/test/compile-fail/struct-pat-derived-error.rs
@@ -16,10 +16,8 @@ struct a {
 impl a {
     fn foo(&self) {
         let a { x, y } = self.d; //~ ERROR no field `d` on type `&a`
-        //~^ ERROR struct `a` does not have a field named `x`
-        //~^^ ERROR struct `a` does not have a field named `y`
-        //~^^^ ERROR pattern does not mention field `b`
-        //~^^^^ ERROR pattern does not mention field `c`
+        //~^ ERROR struct `a` does not have fields named `x`, `y`
+        //~| ERROR pattern does not mention fields `b`, `c`
     }
 }