about summary refs log tree commit diff
path: root/tests/run-make/box-struct-no-segfault/main.rs
blob: 1a456af48e8d711af3d23e762e25f7b51c50d601 (plain)
1
2
3
4
5
6
7
#![crate_type = "lib"]
extern crate foo;
use foo::Foo;

pub fn crash() -> Box<Foo> {
    Box::new(Foo::new())
}