s/method/associated function/ in E0201
This commit is contained in:
parent
dc1e79b3c2
commit
f1db9cd7c3
6 changed files with 21 additions and 11 deletions
|
@ -11,7 +11,7 @@
|
|||
struct Foo;
|
||||
impl Foo {
|
||||
fn orange(&self){}
|
||||
fn orange(&self){} //~ ERROR error: duplicate method
|
||||
fn orange(&self){} //~ ERROR duplicate associated function
|
||||
}
|
||||
|
||||
fn main() {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue