diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2018-03-23 09:27:22 -0500 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2018-03-23 10:16:10 -0700 |
| commit | 401a93096ddc002c867633a7d8d613e8249b6b06 (patch) | |
| tree | 078f8838c07785dafb75660b4c11fe72a4a8dd4b /src/test/compile-fail | |
| parent | db2dde9a41aeba6ab0886ebc09c2918b95dd9ddb (diff) | |
| parent | 062a46fdd1d49b1ccdc4f713433521463224d7d9 (diff) | |
| download | rust-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.rs | 6 |
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` } } |
