use ghost::phantom; #[phantom] struct MyPhantom; fn main() { let phantom = MyPhantom::; match phantom { MyPhantom => {} } match phantom { MyPhantom:: => {} } }