about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAriel Ben-Yehuda <ariel.byd@gmail.com>2017-09-24 13:15:18 +0300
committerAriel Ben-Yehuda <ariel.byd@gmail.com>2017-09-24 13:15:18 +0300
commit516534ffdf2d267d5706443d5bd2bd7987d7498e (patch)
tree0f85c6d3b2359c8c49e6c28871ebb4f6013d57af
parentb408144dbec61d3257444fbee529aa4617161c28 (diff)
downloadrust-516534ffdf2d267d5706443d5bd2bd7987d7498e.tar.gz
rust-516534ffdf2d267d5706443d5bd2bd7987d7498e.zip
fix test
-rw-r--r--src/test/compile-fail/issue-43733.rs4
1 files 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<String>;
 
 #[cfg(target_thread_local)]
+#[thread_local]
 static __KEY: std::thread::__FastLocalKeyInner<Foo> =
     std::thread::__FastLocalKeyInner::new();
-//~^^ ERROR Sync` is not satisfied
-//~^^^ ERROR Sync` is not satisfied
 
 #[cfg(not(target_thread_local))]
 static __KEY: std::thread::__OsLocalKeyInner<Foo> =