E1020: break or continue outside a loop
break and continue act on the nearest enclosing loop (ADR-0043), also from inside a case branch.
break and continue act on the nearest enclosing loop (ADR-0043), also
from inside a case branch. Outside any loop there is nothing to leave or
repeat. The message names the keyword, and the error points at it.
Example
actus
Fix
Put the statement inside a loop, or remove it.
actus
Run actus explain E1020 in your terminal to read this entry offline. Browse Ownership & types or all error codes.