rust/src/test/run-pass/import8.rs

10 lines
113 B
Rust

import foo::x;
import z = foo::x;
mod foo {
fn x(y: int) { log(debug, y); }
}
fn main() { x(10); z(10); }