Duolith docs

Errors E0500 to E0599

E0501 A case for a value the match cannot have

Message the case word can never match

Words in italics are filled in when the compiler reports it, such as the element's name or the list of known ones.

Why

A <case is="word"> names a value outside the union of the match's value, so its children could never be shown. Usually the word is misspelt, or the union changed.

How to fix it

Write one of the union's words, or remove the case.

In a terminal

duolith explain E0501

Mentioned in