12 lines
282 B
Rust
12 lines
282 B
Rust
|
extern crate rlua;
|
||
|
|
||
|
use std::panic::catch_unwind;
|
||
|
|
||
|
use rlua::*;
|
||
|
|
||
|
fn main() {
|
||
|
let lua = Lua::new();
|
||
|
let _ = catch_unwind(|| lua.create_table().unwrap());
|
||
|
//~^ error: the trait bound `std::cell::UnsafeCell<()>: std::panic::RefUnwindSafe` is not satisfied in `rlua::Lua`
|
||
|
}
|