Closed
Description
The following code when compiled on rust master then executed crashes with the error: "malloc: *** error for object 0x10b5c62f8: pointer being freed was not allocated"
struct Foo<T>;
fn foo<T>() -> ~Foo<T> {
~Foo
}
fn crash<T>(_: Option<T>, _: &Foo<T>) {
}
pub fn main() {
crash(None, foo::<&str>());
}
My rustc info:
rustc 0.11-pre (2db9700 2014-04-07 08:56:34 -0700)
host: x86_64-apple-darwin
Edit: I guess my rustc is a day out of date. I am pulling latest master to double check.
Metadata
Metadata
Assignees
Labels
No labels