1 #[cxx::bridge] 2 mod ffi { 3 struct Shared { 4 fd: i32, 5 } 6 } 7 8 impl Drop for ffi::Shared { drop(&mut self)9 fn drop(&mut self) { 10 println!("close({})", self.fd); 11 } 12 } 13 main()14 fn main() {} 15