2017-10-09 21:11:22 -05:00
|
|
|
// issue #41834
|
|
|
|
|
2019-01-06 09:33:05 -06:00
|
|
|
#[derive(Default)]
|
|
|
|
struct Foo {
|
|
|
|
one: u8,
|
|
|
|
}
|
|
|
|
|
2017-10-09 21:11:22 -05:00
|
|
|
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,
|
|
|
|
};
|
|
|
|
}
|