diff --git a/tests/test_file_macros.rs b/tests/test_file_macros.rs index 18c3a45..3fae154 100644 --- a/tests/test_file_macros.rs +++ b/tests/test_file_macros.rs @@ -14,7 +14,7 @@ mod tests { } thread_local! { - static LAST_ERROR: RefCell> = RefCell::new(None); + static LAST_ERROR: RefCell> = const { RefCell::new(None) }; } // Mock eprintln! macro to capture the error messages