summaryrefslogtreecommitdiff
path: root/tests/compile-fail/not_refunwindsafe.rs
blob: 55a318936a5967406425da0800dd350981ef6a6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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 type `std::cell::UnsafeCell<()>` may contain interior mutability and a reference
    // may not be safely transferrable across a catch_unwind boundary
}