-
Notifications
You must be signed in to change notification settings - Fork 14.1k
Closed
Labels
A-resolveArea: Name/path resolution done by `rustc_resolve` specificallyArea: Name/path resolution done by `rustc_resolve` specificallyP-mediumMedium priorityMedium priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Description
E.g.,
struct Foo;
impl Foo {
fn bar(&self) {}
fn foo(&self) {
fn bar(x: &Foo) {}
bar(self);
}
}
fn main() {}
Is an error, but shouldn't be, because the bar method hides the locally declared bar function inside foo.
I think this is a bug, so it shouldn't be on any milestone, but nominating just in case.
Metadata
Metadata
Assignees
Labels
A-resolveArea: Name/path resolution done by `rustc_resolve` specificallyArea: Name/path resolution done by `rustc_resolve` specificallyP-mediumMedium priorityMedium priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.