Ruta graveolens  ·  notes from a language experiment  ·  cultivated since 2025

E0200: No main function

CodeCategoryStability
E0200SemanticPermanent

Explanation

Rue could not find the program entry-point function main in the root module.

Likely cause

The entry function is missing, is misspelled, or is declared only in an imported module. An executable Rue program must define main in its root source module.

Examples

Root module without main

fn start() -> i32 {
    0
}

Define the root entry point

fn main() -> i32 {
    0
}

References