19 lines
192 B
Rust
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();
|
|
}
|
|
|