We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent de592eb commit d1ad173Copy full SHA for d1ad173
tests/ui/runtime/stdout-during-shutdown-windows.rs
@@ -2,9 +2,6 @@
2
//@ check-run-results
3
//@ only-windows
4
5
-#![feature(thread_local)]
6
-
7
-#[derive(Debug)]
8
struct Bye;
9
10
impl Drop for Bye {
@@ -13,9 +10,11 @@ impl Drop for Bye {
13
}
14
11
15
12
16
-#[thread_local]
17
-static BYE: Bye = Bye;
18
19
fn main() {
20
- print!("{BYE:?} says hello");
+ thread_local!{
+ static BYE: Bye = Bye;
+ }
+ BYE.with(|_| {
+ print!("hello");
+ });
21
0 commit comments