E0507 could perhaps suggest fixing subsequent uses if it changes T to &T #106882
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
Current output
Desired output
Rationale and extra context
Applying the suggestion will cause type mismatch in
event == event_type
, so perhaps rust could suggest borrowing/dereferencing automatically to fix that?Other cases
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: