You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
186 B

#[cxx::bridge]
mod ffi {
struct Shared {
fd: i32,
}
}
impl Drop for ffi::Shared {
fn drop(&mut self) {
println!("close({})", self.fd);
}
}
fn main() {}