summary refs log tree commit diff
path: root/src/test/run-pass/import.rs
blob: 3a2b8996c4d7eb1704d284351e89b9070d52327b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
mod foo {
    #[legacy_exports];
    fn x(y: int) { log(debug, y); }
}

mod bar {
    #[legacy_exports];
    use foo::x;
    use z = foo::x;
    fn thing() { x(10); z(10); }
}

fn main() { bar::thing(); }