E2058 Syntax Errors
Syntax
cannot declare a struct or enum inside %s '%s'; define it at the file scope
When this occurs
This error is triggered when: cannot declare a struct or enum inside %s '%s'; define it at the file scope
Example error message
error[E2058]:
cannot declare a struct or enum inside %s '%s'; define it at the file scope
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.