rust/tests/compile-fail/memleak.rs
2017-02-24 10:41:15 +01:00

6 lines
104 B
Rust

//error-pattern: the evaluated program leaked memory
fn main() {
std::mem::forget(Box::new(42));
}