]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/error-codes/E0063.rs
1 // ignore-tidy-linelength
21 struct TruncatedPluralFoo
{
32 let w
= SingleFoo { }
;
33 //~^ ERROR missing field `x` in initializer of `SingleFoo`
34 let x
= PluralFoo {x: 1}
;
35 //~^ ERROR missing fields `y` and `z` in initializer of `PluralFoo`
36 let y
= TruncatedFoo{x:1}
;
37 //~^ missing fields `a`, `b`, `y` and 1 other field in initializer of `TruncatedFoo`
38 let z
= TruncatedPluralFoo{x:1}
;
39 //~^ ERROR missing fields `a`, `b`, `c` and 2 other fields in initializer of `TruncatedPluralFoo`