rust/src/test/run-pass/export-glob.rs

12 lines
219 B
Rust
Raw Normal View History

// 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; }