Duolith docs

Errors E0500 to E0599

E0506 Else case that is not last

Message <case else> must be the last case, and the only one

Why

<case else> is shown for every value no other case names, so a case after it, or a second else, could never be shown.

How to fix it

Move <case else> after every <case is="...">.

In a terminal

duolith explain E0506

Mentioned in