rust/src/test/compile-fail/export.rs
2010-06-23 21:03:09 -07:00

15 lines
152 B
Rust

// 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);
}