rust/tests/compile-fail/memleak.rs
2018-08-30 08:57:33 +02:00

8 lines
123 B
Rust

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