diff --git a/tests/deletion-drops.rs b/tests/deletion-drops.rs index cd8bf2d..989f934 100644 --- a/tests/deletion-drops.rs +++ b/tests/deletion-drops.rs @@ -22,7 +22,7 @@ struct MyTracked<'db> { } thread_local! { - static DROPPED: std::cell::RefCell> = std::cell::RefCell::new(vec![]); + static DROPPED: std::cell::RefCell> = const { std::cell::RefCell::new(vec![]) }; } fn dropped() -> Vec {