rust/src/test/run-pass/import-from-native.rs

15 lines
192 B
Rust
Raw Normal View History

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