[go: up one dir, main page]

ghost 0.1.3

Define your own PhantomData
Documentation
1
2
3
4
5
6
7
8
use ghost::phantom;

fn main() {
    // Not supported. https://github.com/dtolnay/ghost/issues/1

    #[phantom]
    struct MyPhantom<T: ?Sized>;
}