Skip to main content
SIFR-PROTO-0005 belongs to the Protocols diagnostic family. It means: protocol receiver convention mismatch.

Why It Happens

A value does not satisfy the structural protocol required by the operation, such as iteration, context management, or indexing.
Use sifr --explain SIFR-PROTO-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

Declare a mutable receiver in the protocol when conforming implementations may mutate their receiver.

Fixed Code

Details

See the Error Codes index for the complete catalog.