1 2 3 4 5 6 7 8 9 10 11
use luau::{Lua, Result}; fn main() -> Result<()> { let lua = Lua::new()?; let function = lua.scope(|scope| { scope.create_function(|_, arguments| arguments.finish(())) })?; function.call::<()>(()) }