Skip to content

Commit d1ad173

Browse files
committed
Fix stdout-during-shutdown-windows
1 parent de592eb commit d1ad173

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

tests/ui/runtime/stdout-during-shutdown-windows.rs

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
//@ check-run-results
33
//@ only-windows
44

5-
#![feature(thread_local)]
6-
7-
#[derive(Debug)]
85
struct Bye;
96

107
impl Drop for Bye {
@@ -13,9 +10,11 @@ impl Drop for Bye {
1310
}
1411
}
1512

16-
#[thread_local]
17-
static BYE: Bye = Bye;
18-
1913
fn main() {
20-
print!("{BYE:?} says hello");
14+
thread_local!{
15+
static BYE: Bye = Bye;
16+
}
17+
BYE.with(|_| {
18+
print!("hello");
19+
});
2120
}

0 commit comments

Comments
 (0)