E2053 Syntax Errors
Syntax
%s '%s' must be defined at the file scope, not inside a function
When this occurs
This error is triggered when: %s '%s' must be defined at the file scope, not inside a function
Example error message
error[E2053]:
type definitions must be at file level
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.