syntax: rename TypeMethod to MethodSig and use it in MethDecl.
This commit is contained in:
parent
f98b176314
commit
ce10fa8d12
28 changed files with 288 additions and 510 deletions
|
|
@ -11,7 +11,7 @@
|
|||
struct Foo;
|
||||
impl Foo {
|
||||
fn orange(&self){}
|
||||
fn orange(&self){} //~ ERROR error: duplicate method in trait impl
|
||||
fn orange(&self){} //~ ERROR error: duplicate method
|
||||
}
|
||||
|
||||
fn main() {}
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ impl Foo {
|
|||
Foo { baz: 0 }.bar();
|
||||
}
|
||||
|
||||
fn bar() { //~ ERROR duplicate method in trait impl
|
||||
fn bar() { //~ ERROR duplicate method
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue