diff --git a/tests/closures.rs b/tests/closures.rs index 32d4b795..69df04e1 100644 --- a/tests/closures.rs +++ b/tests/closures.rs @@ -378,10 +378,8 @@ fn test_closures_external() -> Result<(), Box> { #[test] #[cfg(not(feature = "no_closure"))] +#[cfg(not(feature = "sync"))] fn test_closures_callback() -> Result<(), Box> { - use std::cell::RefCell; - use std::rc::Rc; - type SingleNode = Rc; trait Node {