summary refs log tree commit diff
path: root/src/test/run-pass/export-glob.rs
blob: 3f3ecb68250be17fa7d75ae4b5f63f68dc1baaf3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Test that a glob-export functions as an explicit
// named export when referenced from outside its scope.

// Modified to not use export since it's going away. --pcw

mod foo {
    #[legacy_exports];
    use bar::*;
    export a;
    mod bar {
        #[legacy_exports];
        const a : int = 10;
    }
}

fn main() { let v = foo::a; }