Consider suggesting &mut TypeParam
when given &TypeParam
and that would fix the user's issue
#81421
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-suggestion-diagnostics
Area: Suggestions generated by the compiler applied by `cargo fix`
A-type-system
Area: Type system
D-newcomer-roadblock
Diagnostics: Confusing error or lint; hard to understand for new users.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
When given:
We currently emit:
What is likely desired instead is to use
&mut Stream
.Seen in the wild at https://www.reddit.com/r/rust/comments/l5osgu/why_does_a_reference_to_a_generic_parameter_not/
The text was updated successfully, but these errors were encountered: