DerefMut borrow method call is too long with Deref arguments #57376
Labels
A-NLL
Area: Non-lexical lifetimes (NLL)
NLL-complete
Working towards the "valid code works" goal
P-medium
Medium priority
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Currently with Rust 2018, this code does not compile.
It seems that the compiler desugars the method call like this:
But I think the
DerefMut
should be deferred, or use onlyDerefMut
reference without anyDeref
.The text was updated successfully, but these errors were encountered: