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

15 lines
149 B
Rust
Raw Normal View History

2011-04-24 18:40:01 -05:00
// error-pattern: unresolved name
2010-06-23 23:03:09 -05:00
mod foo {
export x;
fn x(int y) {
log y;
}
fn z(int y) {
log y;
}
}
fn main() {
foo::z(10);
2010-06-23 23:03:09 -05:00
}