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

19 lines
339 B
Rust
Raw Normal View History

// Test that a glob-export functions as an import
// when referenced within its own local scope.
// Modified to not use export since it's going away. --pcw
mod foo {
#[legacy_exports];
use bar::*;
mod bar {
#[legacy_exports];
const a : int = 10;
}
fn zum() {
let b = a;
}
}
fn main() { }