rust/tests/run-make/box-struct-no-segfault/main.rs

8 lines
112 B
Rust

#![crate_type = "lib"]
extern crate foo;
use foo::Foo;
pub fn crash() -> Box<Foo> {
Box::new(Foo::new())
}