Nonsensical error message for string error inside macro #58298
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Apologies if this has been posted before, I couldn't find anything but many of my searches had several hundred results and I didn't want to go through pages upon pages of them for such a minor issue (yeah, I'm part of the problem, sorry).
If you have an error where you pass a
String
instead of a&str
inside a macro, the suggestionrustc
emits is meaningless:Note this:
This is an item-position macro and so this suggestion will only cause a syntax error.
The text was updated successfully, but these errors were encountered: