Fix test.

This commit is contained in:
Stephen Chung
2021-11-28 10:49:48 +08:00
parent 9c4ed44ab8
commit f49ff28b82
3 changed files with 11 additions and 5 deletions

View File

@@ -129,7 +129,7 @@ fn test_fn_ptr_call() -> Result<(), Box<EvalAltResult>> {
}
#[test]
#[cfg(not(feature = "no_function"))]
#[cfg(not(feature = "no_closure"))]
fn test_fn_ptr_make_closure() -> Result<(), Box<EvalAltResult>> {
let f = {
let engine = Engine::new();