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

mod foo {
    export bar::*;
    mod bar {
        const a : int = 10;
    }
}

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