1 2 3 4 5 6 7 8 9 10
use foo::x; use z = foo::x; mod foo { #[legacy_exports]; fn x(y: int) { log(debug, y); } } fn main() { x(10); z(10); }