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

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

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