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

E0211: Invalid main signature

CodeCategoryStability
E0211SemanticPermanent

Explanation

The root module's main function does not match Rue's fixed executable entry signature.

Likely cause

main declares a runtime or comptime parameter, or returns a type other than i32 or (). The runtime supplies no source-level arguments and accepts only those two return forms.

Examples

Entry point with a parameter

fn main(value: i32) -> i32 {
    value
}

Use the executable entry signature

fn main() -> i32 {
    0
}

References