rust/tests/fail/memleak.rs
2022-06-01 10:53:38 -04:00

7 lines
159 B
Rust

// error-pattern: the evaluated program leaked memory
// normalize-stderr-test: ".*│.*" -> "$$stripped$$"
fn main() {
std::mem::forget(Box::new(42));
}