Rollup merge of #35410 - silenuss:e0027-formatting, r=jonathandturner
Update compiler error 0027 to use new error format. Part of #35233, Addresses #35200 r? @jonathandturner
This commit is contained in:
commit
4df58252bf
2 changed files with 8 additions and 4 deletions
|
|
@ -17,6 +17,8 @@ fn main() {
|
|||
let d = Dog { name: "Rusty".to_string(), age: 8 };
|
||||
|
||||
match d {
|
||||
Dog { age: x } => {} //~ ERROR E0027
|
||||
Dog { age: x } => {}
|
||||
//~^ ERROR pattern does not mention field `name`
|
||||
//~| NOTE missing field `name`
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue