rust/src/test/run-pass/import7.rs
2011-07-27 15:54:33 +02:00

15 lines
221 B
Rust

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