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

13 lines
172 B
Rust
Raw Normal View History

import foo::zed;
import bar::baz;
mod foo {
2011-07-27 14:19:39 +02:00
mod zed {
fn baz() { debug!{"baz"}; }
}
}
mod bar {
2011-07-27 14:19:39 +02:00
import zed::baz;
export baz;
}
fn main() { baz(); }