rust/tests/ui/suggestions/struct-initializer-comma.fixed

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
224 B
Rust
Raw Normal View History

2020-07-02 00:32:12 -05:00
// run-rustfix
pub struct Foo {
pub first: bool,
pub second: u8,
}
fn main() {
let _ = Foo {
//~^ ERROR missing field
first: true,
second: 25
//~^ ERROR expected one of
};
}