E4004 Reference Errors

undefined-enum-value

enum value does not exist

When this occurs

Accessing non-existent enum value

Example error message

error[E4004]: enum value 'BAR' not found in enum 'Status'

How to fix

Use a value that exists in the enum definition.

Related errors