This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
zhangyang-zerotierone/zeroidc/vendor/cbindgen/tests/rust/enum_self.rs

16 lines
231 B
Rust

#[repr(C)]
pub struct Foo<T> {
something: *const i32,
phantom: std::marker::PhantomData<T>,
}
#[repr(u8)]
pub enum Bar {
Min(Foo<Self>),
Max(Foo<Self>),
Other,
}
#[no_mangle]
pub extern "C" fn root(b: Bar) {}