diff --git a/tests/for.rs b/tests/for.rs index 7cbf401a..62112a12 100644 --- a/tests/for.rs +++ b/tests/for.rs @@ -373,6 +373,7 @@ fn test_for_module_iterator() -> Result<(), Box> { } #[test] +#[cfg(not(feature = "no_index"))] #[cfg(not(feature = "no_closure"))] fn test_for_capture() -> Result<(), Box> { let engine = Engine::new(); @@ -389,7 +390,7 @@ fn test_for_capture() -> Result<(), Box> { let sum = 0; for fp in a { - sum += fp.call(); + sum += call(fp); } sum