diff --git a/src/memory.rs b/src/memory.rs index bf13183..ea9aab0 100644 --- a/src/memory.rs +++ b/src/memory.rs @@ -742,6 +742,8 @@ mod tests { }); } + // this test works only in the non-thread-safe variant, it deadlocks otherwise. + #[cfg(not(feature = "threadsafe"))] #[should_panic] #[test] fn zero_copy_panics_on_nested_access() {