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

15 lines
232 B
Rust

// Test that a glob-export functions as an import
// when referenced within its own local scope.
mod foo {
export bar::*;
mod bar {
const a : int = 10;
}
fn zum() {
let b = a;
}
}
fn main() { }