Closed
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