Error for mut borrow of a immut Box should point to where the Box was bound #36400
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
This code:
produces a helpful error message:
But the analogous code using a
Box
:gives an error which doesn't point at the binding
x
:The text was updated successfully, but these errors were encountered: