14 lines
195 B
Rust
14 lines
195 B
Rust
|
|
struct Foo {
|
||
|
|
first: bool,
|
||
|
|
second: u8,
|
||
|
|
}
|
||
|
|
|
||
|
|
fn main() {
|
||
|
|
let a = Foo {
|
||
|
|
//~^ ERROR missing field
|
||
|
|
first: true
|
||
|
|
second: 25
|
||
|
|
//~^ ERROR expected one of
|
||
|
|
};
|
||
|
|
}
|