use std::marker::PhantomData; fn weird() -> PhantomData { PhantomData //~ ERROR type annotations needed } fn main() {}