Sign in
fuchsia
/
third_party
/
rust
/
6774856e0c81f6cbedd772d295a21005d04a9224
/
.
/
tests
/
ui
/
runtime
/
stdout-during-shutdown-windows.rs
blob: 4644965b154cc5bb37c536e6144b9e28d1f2dc12 [
file
] [
log
] [
blame
]
//@ 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"
);
});
}