E2083 Syntax Errors

Syntax

enum variant '%s' cannot have both a payload and an explicit value

When this occurs

This error is triggered when: enum variant '%s' cannot have both a payload and an explicit value

Example error message

error[E2083]: enum variant '%s' cannot have both a payload and an explicit value

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.