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

17 lines
340 B
Rust

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