diff --git a/src/test/run-pass/export-glob-imports-target.rs b/src/test/run-pass/export-glob-imports-target.rs new file mode 100644 index 000000000000..7fe57244f1c2 --- /dev/null +++ b/src/test/run-pass/export-glob-imports-target.rs @@ -0,0 +1,14 @@ +// 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() { } diff --git a/src/test/run-pass/export-glob.rs b/src/test/run-pass/export-glob.rs index 7463e8ba2952..889805911c14 100644 --- a/src/test/run-pass/export-glob.rs +++ b/src/test/run-pass/export-glob.rs @@ -1,5 +1,7 @@ // xfail-test -// Export the enum variants, without the enum + +// Test that a glob-export functions as an explicit +// named export when referenced from outside its scope. mod foo { export bar::*;