aboutsummaryrefslogtreecommitdiff
path: root/src/test/run-pass/inner-module.rs
blob: 03f32bc4cd6c29e23d6a68cabc3c03a213e69323 (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();
}