Fix checking of duplicate and missing struct field initializers. Closes #3486. Closes #3892

This commit is contained in:
Brian Anderson 2012-10-31 13:56:08 -07:00
parent b2462aa0e1
commit cb4de738cf
4 changed files with 39 additions and 5 deletions

View file

@ -0,0 +1,10 @@
struct BuildData {
foo: int,
bar: ~int
}
fn main() {
let foo = BuildData { //~ ERROR missing field: `bar`
foo: 0
};
}