summary refs log tree commit diff
path: root/src/test/run-pass/inner-module.rs
blob: f65a66db559b2b6c44020e13376bd77d66442b06 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14



// -*- rust -*-
mod inner {
    #[legacy_exports];
    mod inner2 {
        #[legacy_exports];
        fn hello() { debug!("hello, modular world"); }
    }
    fn hello() { inner2::hello(); }
}

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