File tree Expand file tree Collapse file tree 3 files changed +18
-2
lines changed
branches/try/src/test/run-pass Expand file tree Collapse file tree 3 files changed +18
-2
lines changed Original file line number Diff line number Diff line change 2
2
refs/heads/master: 61b1875c16de39c166b0f4d54bba19f9c6777d1a
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5
- refs/heads/try: 1f4a6bb3ad8774c0b852bb4ffca83dd40a188570
5
+ refs/heads/try: 5f4dcb0fa4099b60ae85ee1b977a253843fff595
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
Original file line number Diff line number Diff line change
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 ( ) { }
Original file line number Diff line number Diff line change 1
1
// 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.
3
5
4
6
mod foo {
5
7
export bar:: * ;
You can’t perform that action at this time.
0 commit comments