Sign in
rust
/
rust
/
refs/heads/stable
/
.
/
src
/
tools
/
miri
/
tests
/
genmc
/
fail
/
shims
/
exit.rs
blob: 8c0cc9b3b1c7ca73eac030d51aeb5f3badf1cba6 [
file
] [
edit
]
fn
main
()
{
std
::
thread
::
spawn
(||
{
unsafe
{
std
::
hint
::
unreachable_unchecked
()
};
//~ERROR: entering unreachable code
});
// If we exit immediately, we might entirely miss the UB in the other thread.
std
::
process
::
exit
(
0
);
}