Closed
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.