aboutsummaryrefslogtreecommitdiff
path: root/src/test/compile-fail/export.rs
blob: 7a00f22191db659adde15e830eb4404194fbae37 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// error-pattern: unknown module item
mod foo {
  export x;
  fn x(int y) {
    log y;
  }
  fn z(int y) {
    log y;
  }
}

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