Skip to content

Commit 5f4dcb0

Browse files
committed
Fix comment, add test that export glob works as import glob in scope.
1 parent 1f4a6bb commit 5f4dcb0

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// Test that a glob-export functions as an import
2+
// when referenced within its own local scope.
3+
4+
mod foo {
5+
export bar::*;
6+
mod bar {
7+
const a : int = 10;
8+
}
9+
fn zum() {
10+
let b = a;
11+
}
12+
}
13+
14+
fn main() { }

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// xfail-test
2-
// Export the enum variants, without the enum
2+
3+
// Test that a glob-export functions as an explicit
4+
// named export when referenced from outside its scope.
35

46
mod foo {
57
export bar::*;

0 commit comments

Comments
 (0)