rust/src/test/run-pass/import.rs

16 lines
163 B
Rust
Raw Normal View History

2010-06-23 21:03:09 -07:00
mod foo {
fn x(int y) {
log y;
}
}
mod bar {
import foo::x;
import z = foo::x;
fn thing() {
2010-06-23 21:03:09 -07:00
x(10);
z(10);
}
}
fn main() { bar::thing(); }