summary refs log tree commit diff
path: root/src/test/run-pass/inner-module.rs
blob: d8658691875bff8eed4893329bf1dd2d6ca01d13 (plain)
1
2
3
4
5
6
7
8
mod inner {
    pub mod inner2 {
        pub fn hello() { println!("hello, modular world"); }
    }
    pub fn hello() { inner2::hello(); }
}

pub fn main() { inner::hello(); inner::inner2::hello(); }