Sign in
rust
/
rust
/
98e8f99bc0401f9ff22dca2290b2bc2c33345a4b
/
.
/
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
};
}