[−][src]Function syntax::ext::tt::macro_parser::parse_failure_msg
pub fn parse_failure_msg(tok: Token) -> String
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Generate an appropriate parsing failure message. For EOF, this is "unexpected end...". For other tokens, this is "unexpected token...".