Sign in
fuchsia
/
third_party
/
rust
/
13ef05e2be9862ea7b94d0b42e0b2d044b3c7f6b
/
.
/
tests
/
ui
/
parser
/
recovered-struct-variant.rs
blob: 5b195dcc3787849545770910f991ae31a9951950 [
file
] [
log
] [
blame
]
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
}
=>
{}
}
}