error[E0277]: the type `UnsafeCell` may contain interior mutability and a reference may not be safely transferrable across a catch_unwind boundary --> tests/compile/ref_nounwindsafe.rs:8:18 | 8 | catch_unwind(move || table.set("a", "b").unwrap()); | ------------ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `UnsafeCell` may contain interior mutability and a reference may not be safely transferrable across a catch_unwind boundary | | | required by a bound introduced by this call | = help: within `Lua`, the trait `RefUnwindSafe` is not implemented for `UnsafeCell` = note: required because it appears within the type `ArcInner>` = note: required because it appears within the type `PhantomData>>` = note: required because it appears within the type `Arc>` = note: required because it appears within the type `LuaInner` = note: required because it appears within the type `ArcInner` = note: required because it appears within the type `PhantomData>` = note: required because it appears within the type `Arc` = note: required because it appears within the type `Lua` = note: required for `&Lua` to implement `UnwindSafe` = note: required because it appears within the type `LuaRef<'_>` = note: required because it appears within the type `Table<'_>` note: required because it's used within this closure --> tests/compile/ref_nounwindsafe.rs:8:18 | 8 | catch_unwind(move || table.set("a", "b").unwrap()); | ^^^^^^^ note: required by a bound in `catch_unwind` --> $RUST/std/src/panic.rs | | pub fn catch_unwind R + UnwindSafe, R>(f: F) -> Result { | ^^^^^^^^^^ required by this bound in `catch_unwind`