cd54e77720
Like so: import foo::{bar, baz}; Issue #817
15 lines
192 B
Rust
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();
|
|
} |