Duolith docs

Errors E0500 to E0599

E0502 Something other than a case inside a match

Message a <match> holds only <case> elements

Why

A match shows the children of one of its cases. Text or an element between the cases belongs to no case, so it would never be shown.

How to fix it

Move it into a <case is="...">, or out of the <match>.

In a terminal

duolith explain E0502

Mentioned in