rust/tests/ui/structs/struct-missing-comma.fixed
2024-02-16 20:02:50 +00:00

13 lines
223 B
Rust

// Issue #50636
//@ run-rustfix
pub struct S {
pub foo: u32, //~ expected `,`, or `}`, found keyword `pub`
// ~^ HELP try adding a comma: ','
pub bar: u32
}
fn main() {
let _ = S { foo: 5, bar: 6 };
}