[go: up one dir, main page]

ghost 0.1.11

Define your own PhantomData
Documentation
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() {}