1 A pattern for a struct fails to specify a sub-pattern for every one of the
4 Erroneous code example:
12 let d = Dog { name: "Rusty".to_string(), age: 8 };
20 To fix this error, ensure that each field from the struct's definition is
21 mentioned in the pattern, or use `..` to ignore unwanted fields. Example:
29 let d = Dog { name: "Rusty".to_string(), age: 8 };
32 Dog { name: ref n, age: x } => {}
35 // This is also correct (ignore unused fields).
37 Dog { age: x, .. } => {}