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