aboutsummaryrefslogtreecommitdiff
path: root/src/test/compile-fail/export2.rs
blob: 720a21d8df51b5701a0b48681dedbebf50b0ee07 (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
// xfail-boot
// 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();
}