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