trisquel-icecat/icecat/third_party/cbindgen/tests/rust/generic_pointer.rs

14 lines
193 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,
) { }
#[no_mangle]
pub extern "C" fn my_function(x: Foo<[u8; 4]>) {}