Move /src/test to /tests
This commit is contained in:
parent
ca855e6e42
commit
cf2dff2b1e
27592 changed files with 0 additions and 0 deletions
20
tests/ui/structs/struct-field-init-syntax.rs
Normal file
20
tests/ui/structs/struct-field-init-syntax.rs
Normal file
|
@ -0,0 +1,20 @@
|
|||
// 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,
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue