aboutsummaryrefslogtreecommitdiff
path: root/src/test/compile-fail/export-boot.rs
blob: 75b9de2886b9b18fc345c994ec12730a66e35f0a (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);
}