Enhance match
implied borrow
#56185
Labels
A-borrow-checker
Area: The borrow checker
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
The above works because of the implied borrow introduced in v1.26
However, if we don't put
&
beforefoo.bar
, theref
is mandatory.Is it a good idea in this case that the compiler also implicitly adds
ref
for us, since we cannot movefoo.bar
anyway.The text was updated successfully, but these errors were encountered: