self-referencial struct: mutable borrow not dropped? #138496
Labels
C-discussion
Category: Discussion or questions that doesn't represent real issues.
needs-triage
This issue may need triage. Remove it if it has been sufficiently triaged.
I tried this code:
I expected to see this happen: should compile.
Instead, this happened: compiler seems to think foo.op2() hangs onto the mutable borrow in op1
Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: