From 5e8caa056a1fe579eaad03e2b303539ec558cc02 Mon Sep 17 00:00:00 2001 From: joboet Date: Mon, 25 Nov 2024 14:03:02 +0100 Subject: [PATCH] make sure that the allocator is actually called in allocator test Originally authored by GnomedDev --- tests/rustdoc/demo-allocator-54478.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/rustdoc/demo-allocator-54478.rs b/tests/rustdoc/demo-allocator-54478.rs index dd98e80f03ade..80acfc0ff58a1 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 }); //! } //! ```