I'm trying to write a proc macro (full code is here, error happens when building the baseconv example).
I keep getting the error from the title, the positional information is useless since it within the macro-generated code, and i have no idea what the text of the error is supposed to mean.
why would the compiler think something is a type parameter unless it is surrounded with angle brackets? there doesn't seem to be any info about this error online, and it's a parsing error, so it doesn't have an error number, and thus, no --explain entry.
Yeah, the error is very opaque in your macro use-case. I was only able to understand it by literally searching the rust repo, like this, which finds a rustc UI test case that was close enough to spot the problem in the macro definition quickly