aboutsummaryrefslogtreecommitdiff
path: root/src/test/compile-fail/export-boot.rs
blob: 892f544fcc43f1f04a33b9ee18e9e41c8b6f1789 (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
// error-pattern: unknown module item

// rustboot has a different error message than rustc
// this test can die with rustboot, or rustc's error can change

mod foo {
  export x;
  fn x(int y) {
    log y;
  }
  fn z(int y) {
    log y;
  }
}

fn main() {
  foo.z(10);
}