Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
structs
/
struct-missing-comma.rs
blob: b9d8c9eb303440b028c2feb3ccd793b991c18b04 [
file
] [
log
] [
blame
] [
edit
]
// 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
};
}