Sign in
rust
/
rust-lang
/
rust
/
refs/heads/try
/
.
/
tests
/
ui
/
structs
/
struct-missing-comma.fixed
blob: cd02f61f1a46b483f1e7d6d366d85f2599511630 [
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
};
}