Make E0201 detect when duplicate function is a method.
This commit is contained in:
parent
f1db9cd7c3
commit
037456a593
5 changed files with 9 additions and 5 deletions
|
@ -11,7 +11,7 @@
|
|||
struct Foo;
|
||||
impl Foo {
|
||||
fn orange(&self){}
|
||||
fn orange(&self){} //~ ERROR duplicate associated function
|
||||
fn orange(&self){} //~ ERROR duplicate method
|
||||
}
|
||||
|
||||
fn main() {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue