-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-resolveArea: Name/path resolution done by `rustc_resolve` specificallyArea: Name/path resolution done by `rustc_resolve` specifically
Milestone
Description
// error-pattern:unresolved import: m::f
import x = m::f;
mod m {
}
fn main() {
}
../src/test/compile-fail/unresolved-named-import.rs:2:7: 2:16 error: unresolved import: m::x
../src/test/compile-fail/unresolved-named-import.rs:2 import x = m::f;
The error says we failed to resolve m::x
but that is incorrect. We failed to resolve x
, we failed to find m::f
, and m::x
doesn't identify a real thing.
Metadata
Metadata
Assignees
Labels
A-resolveArea: Name/path resolution done by `rustc_resolve` specificallyArea: Name/path resolution done by `rustc_resolve` specifically
Type
Projects
Relationships
Development
Select code repository
Activity
catamorphism commentedon Jun 22, 2012
Test after #1935 is done.
bstrie commentedon Jul 16, 2012
The example file no longer fails to compile, although shouldn't it? After all, there's still nothing named
m::f
for it to import.catamorphism commentedon Jul 16, 2012
Yes, it should fail to compile, so there's a different bug now.
Add xfailed test for #2123
catamorphism commentedon Dec 7, 2012
This test passes now.
Fix broken links (rust-lang#2123)
Fix broken links (rust-lang#2123)