blob: 161f7e93af8390a68cb73ef6dfe5cb29cbf8518b [file] [log] [blame]
// issue #41834
#[derive(Default)]
struct Foo {
one: u8,
}
fn main() {
let foo = Foo {
one: 111,
..Foo::default(),
//~^ ERROR cannot use a comma after the base struct
};
let foo = Foo {
..Foo::default(),
//~^ ERROR cannot use a comma after the base struct
one: 111,
};
}