]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/struct-initializer-comma.fixed
Rollup merge of #106726 - cmorin6:fix-comment-typos, r=Nilstrieb
[rust.git] / tests / ui / suggestions / struct-initializer-comma.fixed
1 // run-rustfix
2
3 pub struct Foo {
4     pub first: bool,
5     pub second: u8,
6 }
7
8 fn main() {
9     let _ = Foo {
10         //~^ ERROR missing field
11         first: true,
12         second: 25
13         //~^ ERROR expected one of
14     };
15 }