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

E0701: Intrinsic wrong arg count

CodeCategoryStability
E0701IntrinsicPermanent

Explanation

Each intrinsic declares an accepted argument count or range. Rue checks the number of supplied arguments against that arity contract before applying its type and behavior rules.

Likely cause

An argument is missing, an extra comma-separated argument was supplied, or the call was written for a different version of the intrinsic's signature.

Examples

Omit a required intrinsic argument

fn main() -> i32 {
    @dbg();
    0
}

Supply the declared argument count

fn main() -> i32 {
    @dbg(42);
    0
}

References