E4003 Reference Errors

undefined-field

field does not exist on type

When this occurs

Accessing non-existent struct field

Example error message

error[E4003]: field 'foo' not found

How to fix

Check that the field exists on the struct. Verify the field name spelling.

Related errors