cbindgen/tests/rust/generic_pointer.rs
2020-10-31 17:01:44 +01:00

12 lines
129 B
Rust

#[repr(C)]
pub struct Foo<T> {
a: T,
}
pub type Boo = Foo<*mut u8>;
#[no_mangle]
pub extern "C" fn root(
x: Boo,
) { }