luau 0.732.0

Safe lifetime-bound Rust embedding API for the Luau runtime
1
2
3
4
5
6
7
8
9
10
error[E0521]: borrowed data escapes outside of closure
 --> tests/compile/callback_value_escapes.rs:9:13
  |
5 |     let mut escaped: Option<Table<'_>> = None;
  |         ----------- `escaped` declared here, outside of the closure body
...
9 |             escaped = Some(arguments.next::<Table<'_>>()?);
  |             ^^^^^^^ a temporary borrow escapes the closure body here
  |
  = help: `escaped` is declared outside the closure, so any data borrowed inside the closure cannot be stored into it