Fix comment, add test that export glob works as import glob in scope.
This commit is contained in:
parent
1f4a6bb3ad
commit
5f4dcb0fa4
14
src/test/run-pass/export-glob-imports-target.rs
Normal file
14
src/test/run-pass/export-glob-imports-target.rs
Normal file
@ -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() { }
|
@ -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::*;
|
||||
|
Loading…
x
Reference in New Issue
Block a user