Rellum Rellum

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

Canonical fixes

Before:

consume(history)

After:

consume(share(history))

Code example

consume(history)