Suggestion for as_mut_ref method on *mut T is <*const T>::as_ref rather than <*mut T>::as_mut #83695
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-raw-pointers
Area: raw pointers, MaybeUninit, NonNull
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Given the following code:
(I don't know why to this day, I still type
as_mut_ret
... it's beyond me...)The current output is:
The note is misleading in two ways:
*const T
, when it should be a method on*mut T
.as_ref
while it should beas_mut
.The text was updated successfully, but these errors were encountered: