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

12 lines
165 B
Rust
Raw Normal View History

2010-06-23 23:03:09 -05:00
mod foo {
fn x(y: int) { log(debug, y); }
2010-06-23 23:03:09 -05:00
}
mod bar {
2011-07-27 07:19:39 -05:00
import foo::x;
import z = foo::x;
fn thing() { x(10); z(10); }
2010-06-23 23:03:09 -05:00
}
fn main() { bar::thing(); }