xref: /aosp_15_r20/external/stg/test_cases/info_tests/variant/singleton.rs (revision 9e3b08ae94a55201065475453d799e8b1378bea6)
1 pub enum Singleton {
2     Unit,
3 }
4 
5 #[no_mangle]
is_unit(s: Singleton) -> bool6 pub fn is_unit(s: Singleton) -> bool {
7     match s {
8         Singleton::Unit => true,
9     }
10 }
11