rust/src/test/compile-fail/export2.rs
2011-05-14 21:05:22 -04:00

25 lines
186 B
Rust

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