rust/tests/ui/structs/struct-missing-comma.fixed

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

13 lines
222 B
Rust
Raw Normal View History

2020-07-02 00:32:12 -05:00
// 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 };
}