xref: /aosp_15_r20/external/stg/test_cases/info_tests/variant/optional_empty.rs (revision 9e3b08ae94a55201065475453d799e8b1378bea6)
1 pub enum Empty {}
2 
3 #[no_mangle]
is_none(opt: Option<Empty>) -> bool4 pub fn is_none(opt: Option<Empty>) -> bool {
5     match opt {
6         None => true,
7     }
8 }
9