mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-01 05:57:03 +03:00
6 lines
104 B
Rust
6 lines
104 B
Rust
//error-pattern: the evaluated program leaked memory
|
|
|
|
fn main() {
|
|
std::mem::forget(Box::new(42));
|
|
}
|