E3009 Types Errors
Types
cannot iterate over type '%s'; for_each requires an array, map, or string
When this occurs
Struct field with unknown type
Example error message
error[E3009]:
undefined type 'Custom' in struct 'Person'
How to fix
Ensure all field types in your struct are defined before the struct declaration.