Sign in
rust
/
rust
/
86193fa8a04bcbdeee9917c2a2d1e2ea7054c0a6
/
.
/
tests
/
ui
/
structs
/
struct-missing-comma.fixed
blob: 800128f503bd652f37f5ae5f192e0e8a18c772a4 [
file
] [
log
] [
blame
]
// 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
};
}