]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/structs/struct-pat-derived-error.stderr
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / ui / structs / struct-pat-derived-error.stderr
index 6526ef58a447978e0e096812f2dafc4464f55b2d..f3e9ce76f1e2abf55d9b24e67ebe0e7e1edb593f 100644 (file)
@@ -15,6 +15,15 @@ error[E0027]: pattern does not mention fields `b`, `c`
    |
 LL |         let A { x, y } = self.d;
    |             ^^^^^^^^^^ missing fields `b`, `c`
+   |
+help: include the missing fields in the pattern
+   |
+LL |         let A { x, y, b, c } = self.d;
+   |                     ^^^^^^
+help: if you don't care about these missing fields, you can explicitely ignore them
+   |
+LL |         let A { x, y, .. } = self.d;
+   |                     ^^^^
 
 error: aborting due to 3 previous errors