Fix leaking immediate children and types via glob imports

This commit is contained in:
Alex Crichton 2013-02-26 00:34:45 -05:00
parent 94a07b6e4a
commit f2837fa3f5
2 changed files with 18 additions and 6 deletions

View file

@ -23,8 +23,8 @@ mod a {
}
pub mod sub {
use a::b::*;
fn sub() -> bar { foo(); 1 } //~ ERROR: unresolved name: foo
//~^ ERROR: unresolved name: bar
fn sub() -> bar { foo(); 1 } //~ ERROR: unresolved name: `foo`
//~^ ERROR: use of undeclared type name `bar`
}
}
@ -34,6 +34,6 @@ mod m1 {
use m1::*;
fn main() {
foo(); //~ ERROR: unresolved name: foo
foo(); //~ ERROR: unresolved name: `foo`
}