summaryrefslogtreecommitdiffstats
path: root/tests/ui/imports/import-rpass.rs
blob: de8bf62611416e101c15b69809add9e8702f4da4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// run-pass
mod foo {
    pub fn x(y: isize) { println!("{}", y); }
}

mod bar {
    use foo::x;
    use foo::x as z;
    pub fn thing() { x(10); z(10); }
}

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