2019-01-06 18:33:05 +03:00
|
|
|
fn main() {
|
2013-10-03 11:53:46 +02:00
|
|
|
struct S {
|
|
|
|
|
foo: (),
|
|
|
|
|
bar: (),
|
2012-09-05 15:58:43 -07:00
|
|
|
}
|
2012-04-11 16:18:00 -07:00
|
|
|
|
2013-10-03 11:53:46 +02:00
|
|
|
let a = S { foo: (), bar: () };
|
|
|
|
|
let b = S { foo: (), with a };
|
2022-07-07 14:59:54 -07:00
|
|
|
//~^ ERROR expected one of `,`, `:`, or `}`, found `a`
|
2020-09-02 10:40:56 +03:00
|
|
|
//~| ERROR missing field `bar` in initializer of `S`
|
2012-07-06 19:06:58 -07:00
|
|
|
}
|