rust/tests/fail/memleak.rs

7 lines
159 B
Rust
Raw Normal View History

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