1 2 3 4 5 6 7 8 9 10
#![deny(improper_ctypes_definitions)] use ghost::phantom; #[phantom] pub struct MyPhantom<T>; pub extern "C" fn extern_fn(_phantom: MyPhantom<i32>) {} fn main() {}