Skip to content
TE214 · Type · error

Generated derive items violate the declared scope

The generated items escape the expansion scope declared by `@derive_for`, such as an unrelated free function from an impl-scoped derive.

Why this fires

The generated items escape the derive's allowed expansion scope. For example, an impl-scoped derive may not smuggle an unrelated free function beside its generated impl.

Fix it

Keep the output inside the declared scope, or choose the appropriate scope: contract on @derive_for when broader output is intentional.

See also

Search Zolo

9 results

en