Sign in
rust
/
rust
/
ef4cff2ea33e070b7fa7253fdb4a88e3f4086a15
/
.
/
tests
/
ui
/
panics
/
panic-task-name-none.rs
blob: 4471cd6795cb0d7e702c0a9ff560b27905f3aa1e [
file
]
//@ run-fail
//@ regex-error-pattern: thread '<unnamed>' \(\d+\) panicked
//@ error-pattern: test
//@ needs-threads
use
std
::
thread
;
fn
main
()
{
let
r
:
Result
<(),
_
>
=
thread
::
spawn
(
move
||
{
panic
!(
"test"
);
})
.
join
();
assert
!(
r
.
is_ok
());
}