rust/src/test/run-pass/import-from-native.rs
Brian Anderson cd54e77720 Allow multiple imports in a single statement
Like so: import foo::{bar, baz};

Issue #817
2011-08-17 11:04:56 -07:00

15 lines
192 B
Rust

mod spam {
fn ham() {}
fn eggs() {}
}
native "rust" mod rustrt {
import spam::{ham, eggs};
export ham;
export eggs;
}
fn main() {
rustrt::ham();
rustrt::eggs();
}