Sign in
◑
Theme
rust
/
rust
/
21b4ef650f016cc2ddcfa29c9ad2bd8f2d4e359d
/
.
/
tests
/
ui
/
structs
/
struct-missing-comma.rs
blob: 84944519fba94cf6e42235171a0c1df1d62b0244 [
file
]
// 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
};
}