Sign in
rust
/
rust-lang
/
rust
/
refs/heads/try
/
.
/
tests
/
ui
/
structs
/
struct-missing-comma.rs
blob: 84944519fba94cf6e42235171a0c1df1d62b0244 [
file
] [
log
] [
blame
]
// Issue #50636
//@ run-rustfix
pub
struct
S
{
pub
foo
:
u32
//~ ERROR expected `,`, or `}`, found keyword `pub`
// ~^ HELP try adding a comma: ','
pub
bar
:
u32
}
fn
main
()
{
let
_
=
S
{
foo
:
5
,
bar
:
6
};
}