Closed
Description
I'm guessing this is a consequence of #2794 not being done yet, but the folks in #rust told me to file it anyway:
This code sample:
trait Foo {
fn a() -> int;
fn b() -> int {
self.a() + 2
}
}
impl int: Foo {
fn a() -> int {
3
}
}
fn main() {
io::println(int::str(3.b()));
}
Generates this error:
4:8: 4:12 error: internal compiler error: self method call
With Rust built from f96a2a2 running on Mac OS 10.8.2.
Metadata
Metadata
Assignees
Type
Projects
Relationships
Development
No branches or pull requests
Activity
Dretch commentedon Nov 24, 2012
This seems to work now.
Rollup merge of rust-lang#81387 - c410-f3r:tests-tests-tests, r=petro…
Rollup merge of rust-lang#81387 - c410-f3r:tests-tests-tests, r=petro…
Merge pull request rust-lang#3683 from calebcartwright/accept-manifes…
Auto merge of rust-lang#3683 - RalfJung:MIRIFLAGS, r=RalfJung