From 516534ffdf2d267d5706443d5bd2bd7987d7498e Mon Sep 17 00:00:00 2001 From: Ariel Ben-Yehuda Date: Sun, 24 Sep 2017 13:15:18 +0300 Subject: [PATCH] fix test --- src/test/compile-fail/issue-43733.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/compile-fail/issue-43733.rs b/src/test/compile-fail/issue-43733.rs index 0ae4cafa88b..90ccc589b4e 100644 --- a/src/test/compile-fail/issue-43733.rs +++ b/src/test/compile-fail/issue-43733.rs @@ -9,15 +9,15 @@ // except according to those terms. #![feature(const_fn)] +#![feature(thread_local)] #![feature(cfg_target_thread_local, thread_local_internals)] type Foo = std::cell::RefCell; #[cfg(target_thread_local)] +#[thread_local] static __KEY: std::thread::__FastLocalKeyInner = std::thread::__FastLocalKeyInner::new(); -//~^^ ERROR Sync` is not satisfied -//~^^^ ERROR Sync` is not satisfied #[cfg(not(target_thread_local))] static __KEY: std::thread::__OsLocalKeyInner = -- GitLab