diff options
Diffstat (limited to 'tests/compile/lua_norefunwindsafe.stderr')
-rw-r--r-- | tests/compile/lua_norefunwindsafe.stderr | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/compile/lua_norefunwindsafe.stderr b/tests/compile/lua_norefunwindsafe.stderr new file mode 100644 index 0000000..6dff810 --- /dev/null +++ b/tests/compile/lua_norefunwindsafe.stderr @@ -0,0 +1,11 @@ +error[E0277]: the type `std::cell::UnsafeCell<()>` may contain interior mutability and a reference may not be safely transferrable across a catch_unwind boundary + --> $DIR/lua_norefunwindsafe.rs:7:5 + | +7 | catch_unwind(|| lua.create_table().unwrap()); + | ^^^^^^^^^^^^ `std::cell::UnsafeCell<()>` may contain interior mutability and a reference may not be safely transferrable across a catch_unwind boundary + | + = help: within `mlua::lua::Lua`, the trait `std::panic::RefUnwindSafe` is not implemented for `std::cell::UnsafeCell<()>` + = note: required because it appears within the type `std::marker::PhantomData<std::cell::UnsafeCell<()>>` + = note: required because it appears within the type `mlua::lua::Lua` + = note: required because of the requirements on the impl of `std::panic::UnwindSafe` for `&mlua::lua::Lua` + = note: required because it appears within the type `[closure@$DIR/tests/compile/lua_norefunwindsafe.rs:7:18: 7:48 lua:&mlua::lua::Lua]` |