2015-02-09 20:01:45 +01:00
|
|
|
// compile-flags: -Z parse-only
|
|
|
|
|
2013-10-03 11:53:46 +02:00
|
|
|
fn removed_with() {
|
|
|
|
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 };
|
2016-10-27 03:15:13 +03:00
|
|
|
//~^ ERROR expected one of `,` or `}`, found `a`
|
2012-07-06 19:06:58 -07:00
|
|
|
}
|