We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b408144 commit 516534fCopy full SHA for 516534f
src/test/compile-fail/issue-43733.rs
@@ -9,15 +9,15 @@
9
// except according to those terms.
10
11
#![feature(const_fn)]
12
+#![feature(thread_local)]
13
#![feature(cfg_target_thread_local, thread_local_internals)]
14
15
type Foo = std::cell::RefCell<String>;
16
17
#[cfg(target_thread_local)]
18
+#[thread_local]
19
static __KEY: std::thread::__FastLocalKeyInner<Foo> =
20
std::thread::__FastLocalKeyInner::new();
-//~^^ ERROR Sync` is not satisfied
-//~^^^ ERROR Sync` is not satisfied
21
22
#[cfg(not(target_thread_local))]
23
static __KEY: std::thread::__OsLocalKeyInner<Foo> =
0 commit comments