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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
270 B
Rust
Raw Permalink Normal View History

2024-04-18 16:49:07 -05:00
//@ run-pass
//@ check-run-results
//@ only-windows
struct Bye;
impl Drop for Bye {
fn drop(&mut self) {
print!(", world!");
}
}
fn main() {
thread_local!{
static BYE: Bye = Bye;
}
BYE.with(|_| {
print!("hello");
});
}