unexpected token: <eof>
although it's not eof, but eoi
#112458
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-macros
Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)
A-parser
Area: The parsing of Rust source code to an AST
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
Current output
Desired output
Rationale and extra context
While I fully understand, why it is saying
<eof>
, I'm not sure if this can be improved, e.g. if the subparser says eof but the current parser has a character at that position, it could say which one it is.Also the spike
^
points to the "eof" of the macro input, which can be improved I guess.If we remove the
!
, it is exactly what I'd like to see:The text was updated successfully, but these errors were encountered: