rust/src/test/compile-fail/export.rs
2011-05-01 16:57:36 -04:00

16 lines
162 B
Rust

// xfail-boot
// error-pattern: unresolved name
mod foo {
export x;
fn x(int y) {
log y;
}
fn z(int y) {
log y;
}
}
fn main() {
foo.z(10);
}