Skip to content

Commit

Permalink
Add a test that imports can't circumvent exports
Browse files Browse the repository at this point in the history
  • Loading branch information
brson committed May 1, 2011
1 parent 1dd63ff commit a5ccead
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/test/compile-fail/export-import.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// xfail-boot
// error-pattern: unresolved name

import m.unexported;

mod m {
export exported;

fn exported() {
}

fn unexported() {
}
}


fn main() {
unexported();
}

0 comments on commit a5ccead

Please sign in to comment.