diff options
Diffstat (limited to 'tests/compile-fail/scope_callback_escape.rs')
-rw-r--r-- | tests/compile-fail/scope_callback_escape.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/compile-fail/scope_callback_escape.rs b/tests/compile-fail/scope_callback_escape.rs index 2da9d61..43c5226 100644 --- a/tests/compile-fail/scope_callback_escape.rs +++ b/tests/compile-fail/scope_callback_escape.rs @@ -12,8 +12,8 @@ fn main() { lua.scope(|scope| { let f = scope .create_function_mut(|_, t: Table| { + //~^^ error: borrowed data cannot be stored outside of its closure outer = Some(t); - //~^ error: `*outer` does not live long enough Ok(()) }) .unwrap(); |