diff --git a/rust/lib.rs b/rust/lib.rs index c0906e5..cc50bd2 100644 --- a/rust/lib.rs +++ b/rust/lib.rs @@ -17,6 +17,7 @@ struct T { a: bool, b: u8, } + #[unsafe(no_mangle)] extern "C" fn hello_struct(t: T) -> () { say_hello(&format!("{:?}", t))