]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/panics/panic-handler-flail-wildly.rs
4 #![allow(stable_features)]
5 #![allow(unused_must_use)]
7 // ignore-emscripten no threads support
15 panic
::set_hook(Box
::new(|_
| println
!("hello yes this is a")));
17 panic
::set_hook(Box
::new(|_
| println
!("hello yes this is a part 2")));
31 panic
::set_hook(Box
::new(|_
| ()));
32 panic
::set_hook(Box
::new(|_
| ()));
33 panic
::set_hook(Box
::new(|_
| ()));
34 panic
::set_hook(Box
::new(|_
| ()));
35 panic
::set_hook(Box
::new(|_
| ()));
36 panic
::set_hook(Box
::new(|_
| ()));
42 let mut handles
= vec
![];
44 handles
.push(thread
::spawn(a
));
47 handles
.push(thread
::spawn(b
));
50 handles
.push(thread
::spawn(c
));
52 for handle
in handles
{
53 let _
= handle
.join();