Suggest changing -> T<U>
to a -> T<&U>
when trying to return a T<&U>
#100699
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.
Given the following code: https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=a33eca3ff60c0fa5b2f73dc3e34c362f
The current output is:
Ideally, there should be a suggestion to add a
&
to the inner typeThe text was updated successfully, but these errors were encountered: