enum_self.rs 231 B

123456789101112131415
  1. #[repr(C)]
  2. pub struct Foo<T> {
  3. something: *const i32,
  4. phantom: std::marker::PhantomData<T>,
  5. }
  6. #[repr(u8)]
  7. pub enum Bar {
  8. Min(Foo<Self>),
  9. Max(Foo<Self>),
  10. Other,
  11. }
  12. #[no_mangle]
  13. pub extern "C" fn root(b: Bar) {}