PageRenderTime 11ms CodeModel.GetById 8ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/src/test/run-pass/import7.rs

http://github.com/jruderman/rust
Rust | 15 lines | 15 code | 0 blank | 0 comment | 0 complexity | b9f71b73931c8d9c7285763c7989885b MD5 | raw file
 1import foo::zed;
 2import bar::baz;
 3mod foo {
 4    mod zed {
 5        fn baz() { debug!{"baz"}; }
 6    }
 7}
 8mod bar {
 9    import zed::baz;
10    export baz;
11    mod foo {
12        mod zed { }
13    }
14}
15fn main(args: ~[~str]) { baz(); }