rust/src/test/compile-fail/export2.rs
2012-07-30 18:38:15 -07:00

18 lines
184 B
Rust

// error-pattern: unresolved name
mod foo {
export x;
fn x() { bar::x(); }
}
mod bar {
export y;
fn x() { debug!{"x"}; }
fn y() { }
}
fn main() { foo::x(); }