Skip to content

Commit 1d25252

Browse files
committed
make sure that the allocator is actually called in allocator test
Originally authored by GnomedDev
1 parent 14f7f4b commit 1d25252

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/rustdoc/demo-allocator-54478.rs

+1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
//! }
4141
//!
4242
//! fn main() {
43+
//! drop(String::from("An allocation"));
4344
//! assert!(unsafe { HIT });
4445
//! }
4546
//! ```

0 commit comments

Comments
 (0)