aboutsummaryrefslogtreecommitdiff
path: root/src/test/run-pass/export-non-interference3.rs
blob: c52b13f7ec7ae63e315a9ea8da17d0d8f2e5e438 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
mod foo {
  export x;

  fn x() {
    bar.x();
  }
}

mod bar {
  export x;

  fn x() {
    log "x";
  }
}

fn main() {
  foo.x();
}