2015-02-09 13:01:45 -06:00
|
|
|
// compile-flags: -Z parse-only
|
|
|
|
|
2013-10-03 04:53:46 -05:00
|
|
|
fn removed_with() {
|
|
|
|
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`
|
2012-07-06 21:06:58 -05:00
|
|
|
}
|