summaryrefslogtreecommitdiff
path: root/tests/compile-fail/not_refunwindsafe.rs
blob: 08de5de2557171633d8b40203d133abe44cc2be0 (plain)
1
2
3
4
5
6
7
8
9
10
11
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`
}