Duolith docs

Errors E0500 to E0599

E0585 Same key loaded twice at build

Message key is loaded at build twice in this page

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

Why

The data core keeps one value per key, and a page's seed holds one entry per key. Two build-time loads of the same key in one page would race for that entry.

How to fix it

Load the key once and read the one loaded state where both were used, or give the loads different keys.

In a terminal

duolith explain E0585

Mentioned in