C++ arrays can't be assigned. We detect this situation and manually copy over the elements.
8 lines
89 B
Rust
8 lines
89 B
Rust
#[repr(C)]
|
|
enum Foo {
|
|
A([f32; 20])
|
|
}
|
|
|
|
#[no_mangle]
|
|
pub extern "C" fn root(a: Foo) {}
|