S0042: cannot move borrowed value
Generated from rellum-diagnostics/src/db.rs.
Explanation
~ state values are borrowed inside feedback clauses because the clause runs during Advance, before state commits. Moving the prior value would leave the state slot invalid for the next tick's Observe phase.
Common causes
- passing prior state to a function that takes ownership
- using prior state in two places without share()
Canonical fixes
- wrap the use in share() to create a tick-scoped handle
Before:
consume(history)
After:
consume(share(history))
Code example
consume(history)