fwd/vendor/cxx/tests/ui/enum_match_without_wildcard.rs
John Doty 9c435dc440 Vendor dependencies
Let's see how I like this workflow.
2022-12-19 08:38:22 -08:00

16 lines
210 B
Rust

#[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,
}
}