PageRenderTime 4ms CodeModel.GetById 2ms app.highlight 1ms RepoModel.GetById 0ms app.codeStats 0ms

/src/test/run-pass/inner-module.rs

http://github.com/jruderman/rust
Rust | 12 lines | 7 code | 4 blank | 1 comment | 0 complexity | 9e6b9473b2e89740b56de70cd0fa827c MD5 | raw file
 1
 2
 3
 4// -*- rust -*-
 5mod inner {
 6    mod inner2 {
 7        fn hello() { debug!{"hello, modular world"}; }
 8    }
 9    fn hello() { inner2::hello(); }
10}
11
12fn main() { inner::hello(); inner::inner2::hello(); }