Confusing diagnostics when calling FnMut through DerefMut. #72225
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
D-confusing
Diagnostics: Confusing error or lint that should be reworked.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
The following code
produces the following error
The help message is especially confusing, since
DerefMut
is clearly implemeneted forstd::sync::MutexGuard<'_, A>
. This might be related to #68590.The text was updated successfully, but these errors were encountered: