E5038 Usage Errors

Usage

tagged enum '%s' cannot be passed to %s(); use when/is to destructure the payload first

When this occurs

This error is triggered when: tagged enum '%s' cannot be passed to %s(); use when/is to destructure the payload first

Example error message

error[E5038]: tagged enum '%s' cannot be passed to %s(); use when/is to destructure the payload first

How to fix

Review the error message and check your code at the indicated location. The message describes what went wrong — fix the underlying issue it identifies.

Related errors

No related errors.