2019-01-06 09:33:05 -06:00
|
|
|
fn main() {
|
2013-10-03 04:53:46 -05:00
|
|
|
struct S {
|
|
|
|
foo: (),
|
|
|
|
bar: (),
|
2012-09-05 17:58:43 -05:00
|
|
|
}
|
2012-04-11 18:18:00 -05:00
|
|
|
|
2013-10-03 04:53:46 -05:00
|
|
|
let a = S { foo: (), bar: () };
|
|
|
|
let b = S { foo: (), with a };
|
2016-10-26 19:15:13 -05:00
|
|
|
//~^ ERROR expected one of `,` or `}`, found `a`
|
2019-01-20 17:16:36 -06:00
|
|
|
//~| ERROR missing field `bar` in initializer of `main::S`
|
2012-07-06 21:06:58 -05:00
|
|
|
}
|