We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88acc84 commit 8650628Copy full SHA for 8650628
src/librustc_error_codes/error_codes/E0027.md
@@ -1,8 +1,7 @@
1
-This error indicates that a pattern for a struct fails to specify a sub-pattern
2
-for every one of the struct's fields. Ensure that each field from the struct's
3
-definition is mentioned in the pattern, or use `..` to ignore unwanted fields.
+A pattern for a struct fails to specify a sub-pattern for every one of the
+struct's fields.
4
5
-For example:
+Erroneous code example:
6
7
```compile_fail,E0027
8
struct Dog {
@@ -18,7 +17,8 @@ match d {
18
17
}
19
```
20
21
-This is correct (explicit):
+To fix this error, ensure that each field from the struct's definition is
+mentioned in the pattern, or use `..` to ignore unwanted fields. Example:
22
23
24
0 commit comments