]> git.lizzy.rs Git - rust.git/blob - src/test/ui/structs/struct-missing-comma.rs
Merge commit '2bb3996244cf1b89878da9e39841e9f6bf061602' into sync_cg_clif-2022-12-14
[rust.git] / src / test / ui / structs / struct-missing-comma.rs
1 // Issue #50636
2 // run-rustfix
3
4 pub struct S {
5     pub foo: u32 //~ expected `,`, or `}`, found keyword `pub`
6     //     ~^ HELP try adding a comma: ','
7     pub bar: u32
8 }
9
10 fn main() {
11     let _ = S { foo: 5, bar: 6 };
12 }