Sign in
◑
Theme
rust
/
rust
/
32ce99c38ee6a9d4a397e97a9017d69052d63d0f
/
.
/
tests
/
ui
/
parser
/
recovered-struct-variant.rs
blob: 5b195dcc3787849545770910f991ae31a9951950 [
file
]
enum
Foo
{
A
{
a
,
b
:
usize
}
//~^ ERROR expected `:`, found `,`
}
fn
main
()
{
// no complaints about non-existing fields
let
f
=
Foo
::
A
{
a
:
3
,
b
:
4
};
match
f
{
// no complaints about non-existing fields
Foo
::
A
{
a
,
b
}
=>
{}
}
}