about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--library/core/tests/mem.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/core/tests/mem.rs b/library/core/tests/mem.rs
index 86990fa0945..5d0fedd4d9c 100644
--- a/library/core/tests/mem.rs
+++ b/library/core/tests/mem.rs
@@ -1,5 +1,6 @@
 use core::mem::*;
 
+#[cfg(panic = "unwind")]
 use std::rc::Rc;
 
 #[test]