Skip to main content
SIFR-OWN-0005 belongs to the Ownership and borrowing diagnostic family. It means: immutable parameter is mutated.

Why It Happens

The ownership model would be violated. Move values only once, keep borrows scoped, and cross task/channel/IPC boundaries only with owned values that satisfy the required safety traits.
Use sifr --explain SIFR-OWN-0005 locally to see the renderer’s exact message template and any machine-applicable suggestions for the compiler version you are running.

Erroneous Code

How To Fix It

Move ownership only after the last use, keep mutable borrows scoped, and send only owned sendable values across task or channel boundaries.

Fixed Code

Details

See the Error Codes index for the complete catalog.