aboutsummaryrefslogtreecommitdiff
path: root/src/test/run-pass/inner-module.rs
blob: f5066b6e038ccb8848985689666a0e3ea8f871a9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// -*- rust -*-

mod inner {
  mod inner2 {
    fn hello() {
      log "hello, modular world";
    }
  }
  fn hello() {
    inner2.hello();
  }
}

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