You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error: `extern` block uses type `Test`, which is not FFI-safe
--> lib.rs:36:22
|
36 | fn bar(self: &Test);
| ^^^^^ not FFI-safe
|
= help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct
= note: this struct has unspecified layout
The generated C++ bindings are correct and can be successfully compiled.
The text was updated successfully, but these errors were encountered:
I'm trying to expose a Rust defined type and implement one of its method in C++
Results in:
The generated C++ bindings are correct and can be successfully compiled.
The text was updated successfully, but these errors were encountered: