-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Closed
Labels
E-needs-testCall for participation: An issue has been fixed and does not reproduce, but no test has been added.Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
Description
The following code doesn't work (even though I suspect it's correct):
trait Foo {
fn foo(@self) { bar(self); }
}
fn bar(_b: @Foo) { }
The following error is returned:
<anon>:2:24: 2:29 error: mismatched types: expected `@Foo` but found `@Self` (expected trait Foo but found @-ptr)
<anon>:2 fn foo(@self) { bar(self); }
^~~~~
error: aborting due to previous error
Metadata
Metadata
Assignees
Labels
E-needs-testCall for participation: An issue has been fixed and does not reproduce, but no test has been added.Call for participation: An issue has been fixed and does not reproduce, but no test has been added.