Sign in
fuchsia
/
fuchsia
/
6697568849879512cc8452e84c2db4c0da200466
/
.
/
third_party
/
rust_crates
/
vendor
/
cxx
/
tests
/
ui
/
enum_match_without_wildcard.rs
blob: 1a119429b3402b4cd05034983d3adaf9465bbdaa [
file
] [
log
] [
blame
]
#[
cxx
::
bridge
]
mod
ffi
{
enum
A
{
FieldA
,
FieldB
,
}
}
fn
main
()
{}
fn
matcher
(
a
:
ffi
::
A
)
->
u32
{
match
a
{
ffi
::
A
::
FieldA
=>
2020
,
ffi
::
A
::
FieldB
=>
2021
,
}
}