docs

#E0035: module file problem

A mod name; cannot be loaded: its file name.nabi is missing or unreadable, the module is declared twice, or it is both inline and a file. A module's file is named after the module (Nabi has no mod.nabi), beside the file that declares it.

nabi
mod geo;
error[E0035]: module `geo` body not found at `geo.nabi`
   = help: create `geo.nabi`, or write `mod geo { .. }` in place of `mod geo;`

Create geo.nabi next to main.nabi, or write the module inline: mod geo { .. } (5.4 Modules).

Related: E0030 unresolved import, E0036 invalid program entry point

Found a mistake? Edit this page on GitHub. Last updated