rust/src/test/compile-fail/export.rs

15 lines
152 B
Rust
Raw Normal View History

2010-06-23 23:03:09 -05:00
// 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);
}