Fix build.

This commit is contained in:
Stephen Chung 2021-12-03 11:52:34 +08:00
parent fd26654125
commit ff4827064b

View File

@ -16,11 +16,14 @@ fn test_options() -> Result<(), Box<EvalAltResult>> {
assert!(engine.compile("let x = { let z = 0; z + 1 };").is_err());
#[cfg(not(feature = "no_function"))]
{
engine.compile("let x = || 42;")?;
engine.set_allow_anonymous_fn(false);
assert!(engine.compile("let x = || 42;").is_err());
}
engine.compile("while x > y { foo(z); }")?;