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

E0204: Unknown type

CodeCategoryStability
E0204SemanticPermanent

Explanation

Rue could not resolve a name used where a type was required.

Likely cause

The type name is misspelled, is outside the current module's visible scope, or belongs to an imported module but was written without that module binding.

Examples

Unknown annotation type

fn main() -> i32 {
    let value: Number = 42;
    value
}

Use a type in scope

fn main() -> i32 {
    let value: i32 = 42;
    value
}

References