Wrong fix suggested for missing as_mut in the presence of RefCell<Option<>> #96438
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=nightly&mode=debug&edition=2021&gist=d77c477c52217e25856306f659a26e42
The current output is:
There are two separate issues here:
as_ref
is in the wrong place and should be after theborrow_mut()
, not after theunwrap()
.as_ref
really should be anas_mut
The text was updated successfully, but these errors were encountered: