summaryrefslogtreecommitdiff
path: root/tests/compile-fail/scope_callback_escape.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/compile-fail/scope_callback_escape.rs')
-rw-r--r--tests/compile-fail/scope_callback_escape.rs2
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();