chromium/third_party/rust/chromium_crates_io/vendor/cxx-1.0.126/tests/ui/enum_match_without_wildcard.rs

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