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