-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
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