aboutsummaryrefslogtreecommitdiff
path: root/src/test/compile-fail/export2.rs
blob: 5ccdc90ffb5dcb07e24b16a459d2fed84a2f1e33 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// xfail-boot
// xfail-stage0
// xfail-stage1
// xfail-stage2
// error-pattern: unresolved name

mod foo {
  export x;

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

mod bar {
  export y;

  fn x() {
    log "x";
  }

  fn y() {
  }
}

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