Simplify error message with removing lifetime and reference information #76903
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
D-verbose
Diagnostics: Too much output caused by a single piece of incorrect code.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
The following code provides the following error message:
this could be reduced to
as
.
is automatically dereferencing and the lifetime also does not matter for this error.The text was updated successfully, but these errors were encountered: