E1145: field moved out of a zero_on_drop owner
A struct marked meta zero_on_drop is overwritten with zeros as a whole when its owner ends (ADR-0102).
A struct marked meta zero_on_drop is overwritten with zeros as a whole when
its owner ends (ADR-0102). Moving one field out with dat owner.field would
leave a part of the secret outside the owner, where nothing zeroes it, so the
compiler rejects the move. The message names the field and the owner.
Example
actus
Fix
Lend the field with abs, so the owner keeps it.
actus
Run actus explain E1145 in your terminal to read this entry offline. Browse Modules & rules or all error codes.