rust/src/test/run-pass/import6.rs

17 lines
181 B
Rust

import bar::baz;
import foo::zed;
mod foo {
mod zed {
fn baz() {
log "baz";
}
}
}
mod bar {
import zed::baz;
export baz;
}
fn main(vec[str] args) {
baz();
}