aboutsummaryrefslogtreecommitdiff
path: root/src/test/run-pass/use-import-export.rs
blob: f9ac5345bf3ecc971e48b71dccdc395809f115ea (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// xfail-stage0
// xfail-stage1
// xfail-stage2

mod foo {
  export x;
  use std (ver="0.0.1");
  fn x() -> int { ret 1; }
}

mod bar {
  use std (ver="0.0.1");
  export y;
  fn y() -> int { ret 1; }
}

fn main() {
  foo::x();
  bar::y();
}