about summary refs log tree commit diff
diff options
context:
space:
mode:
authorjoboet <jonasboettiger@icloud.com>2024-11-25 14:03:02 +0100
committerjoboet <jonasboettiger@icloud.com>2025-01-14 13:37:28 +0100
commit1d2525260416349272fc2262818344274d896518 (patch)
tree70620b40ad100d70863128adb1a50b19044a8140
parent14f7f4b7bfcfbfe9a6f778e762cac83420e08007 (diff)
downloadrust-1d2525260416349272fc2262818344274d896518.tar.gz
rust-1d2525260416349272fc2262818344274d896518.zip
make sure that the allocator is actually called in allocator test
Originally authored by GnomedDev
-rw-r--r--tests/rustdoc/demo-allocator-54478.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/rustdoc/demo-allocator-54478.rs b/tests/rustdoc/demo-allocator-54478.rs
index dd98e80f03a..80acfc0ff58 100644
--- a/tests/rustdoc/demo-allocator-54478.rs
+++ b/tests/rustdoc/demo-allocator-54478.rs
@@ -40,6 +40,7 @@
 //! }
 //!
 //! fn main() {
+//!     drop(String::from("An allocation"));
 //!     assert!(unsafe { HIT });
 //! }
 //! ```