E0507 suggestion for borrowing mistake inside of a macro suggests a syntax error #107976
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
here's a minimal case -- a bit nonsensical but pulled out of a larger example
Cargo.toml
src/main.rs
wat-derive/Cargo.toml
wat-derive/src/lib.rs
Current output
Desired output
anything else tbh -- I don't really know the correct thing to do here -- it would be nice if it pointed at the borrow error inside the macro-generated code, but I don't think
rustc
currently displays the generated code anywhereRationale and extra context
No response
Other cases
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: