Skip to content

Commit 1f11a0d

Browse files
committed
Fix test relying on allocation pre-main
1 parent b851564 commit 1f11a0d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: 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)