cbindgen/tests/rust/struct_self.rs
2020-01-16 21:07:34 +01:00

15 lines
232 B
Rust

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