candid::parser::token
pub fn error2<E: ToString>( err: E, span: Span) -> ParseError<usize, Token, LexicalError>