E3070 Types Errors
Types
'ensure' may only appear at the top level of a function body; lift it out of the enclosing block
When this occurs
This error is triggered when: 'ensure' may only appear at the top level of a function body; lift it out of the enclosing block
Example error message
error[E3070]:
'ensure' may only appear at the top level of a function body; lift it out of the enclosing block
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.