2011-08-16 17:21:30 -05:00
|
|
|
mod spam {
|
2011-08-19 17:16:48 -05:00
|
|
|
fn ham() { }
|
|
|
|
fn eggs() { }
|
2011-08-16 17:21:30 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
native "rust" mod rustrt {
|
|
|
|
import spam::{ham, eggs};
|
|
|
|
export ham;
|
|
|
|
export eggs;
|
|
|
|
}
|
|
|
|
|
2011-08-19 17:16:48 -05:00
|
|
|
fn main() { rustrt::ham(); rustrt::eggs(); }
|