2017-10-09 21:11:22 -05:00
|
|
|
// compile-flags: -Z parse-only
|
|
|
|
|
|
|
|
// issue #41834
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let foo = Foo {
|
|
|
|
one: 111,
|
|
|
|
..Foo::default(),
|
2017-11-20 06:13:27 -06:00
|
|
|
//~^ ERROR cannot use a comma after the base struct
|
2017-10-09 21:11:22 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
let foo = Foo {
|
|
|
|
..Foo::default(),
|
2017-11-20 06:13:27 -06:00
|
|
|
//~^ ERROR cannot use a comma after the base struct
|
2017-10-09 21:11:22 -05:00
|
|
|
one: 111,
|
|
|
|
};
|
|
|
|
}
|