diff --git a/tests/static.rs b/tests/static.rs
new file mode 100644
index 0000000..471debd
--- /dev/null
+++ b/tests/static.rs
@@ -0,0 +1,113 @@
+use std::cell::RefCell;
+
+use mlua::{Function, Lua, Result, Table};
+
+#[test]
+fn test_static_lua() -> Result<()> {
+ let lua = Lua::new().into_static();
+
+ thread_local! {
+ static TABLE: RefCell