use std::marker::PhantomData; struct Token(PhantomData); impl Token { fn new() -> _ { //~^ ERROR the placeholder `_` is not allowed within types on item signatures for return types //~| NOTE not allowed in type signatures //~| HELP replace with the correct return type Token(PhantomData::<()>) } } fn main() {}