Fix leaking immediate children and types via glob imports
This commit is contained in:
parent
94a07b6e4a
commit
f2837fa3f5
2 changed files with 18 additions and 6 deletions
|
|
@ -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`
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue