E3009 Type Errors

undefined-type-in-struct

field type not defined

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.

Related errors