5573ad723f
In certain lvalue code paths, the type of the borrowed value was not being used to generate temporary spills. I'm a bit surprised we didn't hit this sooner.
14 lines
143 B
Rust
14 lines
143 B
Rust
trait Foo {
|
|
fn foo(self);
|
|
}
|
|
|
|
impl &[int]: Foo {
|
|
fn foo(self) {}
|
|
}
|
|
|
|
fn main() {
|
|
let items = ~[ 3, 5, 1, 2, 4 ];
|
|
items.foo();
|
|
}
|
|
|