diff options
| author | joboet <jonasboettiger@icloud.com> | 2024-11-25 14:03:02 +0100 |
|---|---|---|
| committer | joboet <jonasboettiger@icloud.com> | 2025-01-14 13:37:28 +0100 |
| commit | 1d2525260416349272fc2262818344274d896518 (patch) | |
| tree | 70620b40ad100d70863128adb1a50b19044a8140 | |
| parent | 14f7f4b7bfcfbfe9a6f778e762cac83420e08007 (diff) | |
| download | rust-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.rs | 1 |
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 }); //! } //! ``` |
