Files
cbindgen/tests/rust/generic-pointer.rs
T
Emilio Cobos Álvarez 33d9ecf11f Handle mangling pointers.
Ugly, but better than crashing.

Closes #506.
Closes #453.
2020-04-10 15:22:16 +02: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,
) { }