]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0027.rs
Rollup merge of #59056 - scottmcm:even-fewer-lifetimes, r=sfackler
[rust.git] / src / test / ui / error-codes / E0027.rs
1 struct Dog {
2     name: String,
3     age: u32,
4 }
5
6 fn main() {
7     let d = Dog { name: "Rusty".to_string(), age: 8 };
8
9     match d {
10         Dog { age: x } => {}
11         //~^ ERROR pattern does not mention field `name`
12     }
13 }