Skip to content
TE212 · Type · error

Invalid identifier passed to `syntax.ident`

`syntax.ident(text)` received text that is not one valid, non-keyword Zolo identifier.

Why this fires

syntax.ident(text) received text that is not one valid Zolo identifier, or is a reserved keyword. The constructor validates generated names before parsing the completed derive output.

Fix it

Normalize or prefix the name before constructing the identifier.

let method = syntax.ident("column_" + field.name)
return quote member { fn ${method}(self) {} }

See also

Search Zolo

9 results

en