]> git.lizzy.rs Git - rust.git/blob - src/tools/miri/tests/fail/memleak.rs
Auto merge of #107843 - bjorn3:sync_cg_clif-2023-02-09, r=bjorn3
[rust.git] / src / tools / miri / tests / fail / memleak.rs
1 //@error-pattern: the evaluated program leaked memory
2 //@normalize-stderr-test: ".*│.*" -> "$$stripped$$"
3
4 fn main() {
5     std::mem::forget(Box::new(42));
6 }