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

17 lines
292 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 {
import bar::*;
mod bar {
const a : int = 10;
}
fn zum() {
let b = a;
}
}
fn main() { }