1
Fork 0

Make E0201 detect when duplicate function is a method.

This commit is contained in:
Nick Hamann 2015-06-03 01:34:39 -05:00
parent f1db9cd7c3
commit 037456a593
5 changed files with 9 additions and 5 deletions

View file

@ -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() {}