Skip to content

Commit 516534f

Browse files
committedSep 24, 2017
fix test
1 parent b408144 commit 516534f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/test/compile-fail/issue-43733.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@
99
// except according to those terms.
1010

1111
#![feature(const_fn)]
12+
#![feature(thread_local)]
1213
#![feature(cfg_target_thread_local, thread_local_internals)]
1314

1415
type Foo = std::cell::RefCell<String>;
1516

1617
#[cfg(target_thread_local)]
18+
#[thread_local]
1719
static __KEY: std::thread::__FastLocalKeyInner<Foo> =
1820
std::thread::__FastLocalKeyInner::new();
19-
//~^^ ERROR Sync` is not satisfied
20-
//~^^^ ERROR Sync` is not satisfied
2121

2222
#[cfg(not(target_thread_local))]
2323
static __KEY: std::thread::__OsLocalKeyInner<Foo> =

0 commit comments

Comments
 (0)
Please sign in to comment.