cbindgen/tests/rust/array.rs
Jeff Muizelaar 42b4290c64 Manually copy arrays
C++ arrays can't be assigned. We detect this situation and manually copy
over the elements.
2019-01-03 16:06:33 -06:00

8 lines
89 B
Rust

#[repr(C)]
enum Foo {
A([f32; 20])
}
#[no_mangle]
pub extern "C" fn root(a: Foo) {}