blob: a7aca13ae4490f5226bb2c8042d0d893abf7c185 [file] [log] [blame]
pub enum Foo {
Two(char, char),
One(char),
Zero,
}
#[no_mangle]
pub fn is_zero(foo: Foo) -> bool {
match foo {
Foo::Zero => true,
_ => false,
}
}