summaryrefslogtreecommitdiffstats
path: root/tests/ui/inner-module.rs
blob: 363f753e248729829c5dafb3547c69a99e30ee98 (plain)
1
2
3
4
5
6
7
8
9
10
// run-pass

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(); }