2018-03-28 01:09:51 -04:00
|
|
|
extern crate rlua;
|
|
|
|
|
|
|
|
use std::panic::catch_unwind;
|
|
|
|
|
|
|
|
use rlua::*;
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let lua = Lua::new();
|
|
|
|
let table = lua.create_table().unwrap();
|
|
|
|
let _ = catch_unwind(move || table.set("a", "b").unwrap());
|
2018-08-05 11:54:33 -04:00
|
|
|
//~^ error: the type `std::cell::UnsafeCell<()>` may contain interior mutability and a reference
|
|
|
|
// may not be safely transferrable across a catch_unwind boundary
|
2018-03-28 01:09:51 -04:00
|
|
|
}
|