Add a test that imports can't circumvent exports

This commit is contained in:
Brian Anderson 2011-05-01 17:22:20 -04:00
parent 1dd63ff42d
commit a5ccead3fd

View file

@ -0,0 +1,19 @@
// xfail-boot
// error-pattern: unresolved name
import m.unexported;
mod m {
export exported;
fn exported() {
}
fn unexported() {
}
}
fn main() {
unexported();
}