10 lines
182 B
Rust

// error-pattern: unresolved name
mod foo {
#[legacy_exports];
export x;
fn x(y: int) { log(debug, y); }
fn z(y: int) { log(debug, y); }
}
fn main() { foo::z(10); }