E2065 Syntax Errors
Syntax
enum variant '%s' cannot have the same name as its enum type '%s'
When this occurs
This error is triggered when: enum variant '%s' cannot have the same name as its enum type '%s'
Example error message
error[E2065]:
enum variant '%s' cannot have the same name as its enum type '%s'
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.