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



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

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