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

E0707: Unknown module member

CodeCategoryStability
E0707IntrinsicPermanent

Explanation

A qualified name was not declared as a member of the module named on its left. Module membership is per file; loading another file with a same-named declaration does not add that declaration to this module.

Likely cause

The member name is misspelled, the wrong module binding is used, the declaration lives in another file, or a needed member was removed or renamed.

Examples

Name a member absent from the imported module

// --- main.rue
const helper = @import("helper.rue");
fn main() -> i32 { helper.missing() }
// --- helper.rue
pub fn answer() -> i32 { 42 }

Use a member declared by that module

// --- main.rue
const helper = @import("helper.rue");
fn main() -> i32 { helper.answer() }
// --- helper.rue
pub fn answer() -> i32 { 42 }

References