E1007: binding dropped twice
A resource is released exactly once (ADR-0027).
A resource is released exactly once (ADR-0027). The compiler rejects a drop
of a binding that was already dropped. Dropping a binding that was moved is a
use of a moved binding and is reported as E1005 instead. The error points at
the second drop.
Example
actus
Fix
Drop the binding once. Without an explicit drop, the compiler releases it
when its scope ends.
actus
A binding from which a field was moved is dropped once for its remaining fields:
actus
Run actus explain E1007 in your terminal to read this entry offline. Browse Ownership & types or all error codes.