]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/struct-initializer-comma.rs
Merge commit '0969bc6dde001e01e7e1f58c8ccd7750f8a49ae1' into sync_cg_clif-2021-03-29
[rust.git] / src / test / ui / suggestions / struct-initializer-comma.rs
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 }