rust/src/test/run-pass/use-import-export.rs
2010-07-16 07:19:14 +08:00

19 lines
192 B
Rust

mod foo {
export x;
use std (ver="0.0.1");
fn x() -> int { ret 1; }
}
mod bar {
use std (ver="0.0.1");
export y;
fn y() -> int { ret 1; }
}
fn main() {
foo.x();
bar.y();
}