rust/tests/run-make/box-struct-no-segfault/main.rs
2024-05-17 14:44:21 -04:00

8 lines
108 B
Rust

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