# E4204

Compiler diagnostic name: `loop_nobreak_not_supported`.

The `loop` expression does not support a `nobreak` block. `nobreak` is for loop
forms where normal completion is possible, while `loop` is an explicit
functional loop that continues or breaks from its body.

## Erroneous example

```{literalinclude} /sources/error_codes/4204_error/top.mbt
:language: moonbit
```

## Suggestion

Rewrite the code as a `for` loop when you need loop state and an explicit
result.

```{literalinclude} /sources/error_codes/4204_fixed/top.mbt
:language: moonbit
```
