We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ff7ecc commit c26af36Copy full SHA for c26af36
tests/compile-fail/memleak.rs
@@ -0,0 +1,5 @@
1
+//error-pattern: the evaluated program leaked memory
2
+
3
+fn main() {
4
+ std::mem::forget(Box::new(42));
5
+}
0 commit comments