rust/src/test/compile-fail/export.rs

9 lines
181 B
Rust

// error-pattern: unresolved name
mod foo {
export x;
fn x(y: int) { log_full(core::debug, y); }
fn z(y: int) { log_full(core::debug, y); }
}
fn main() { foo::z(10); }