chromium/third_party/rust/chromium_crates_io/vendor/cxx-1.0.126/tests/ui/drop_shared.rs

#[cxx::bridge]
mod ffi {
    struct Shared {
        fd: i32,
    }
}

impl Drop for ffi::Shared {
    fn drop(&mut self) {
        println!("close({})", self.fd);
    }
}

fn main() {}