2 // ignore-emscripten no threads support
10 static mut DROPPED: bool = false;
20 fn empty() -> Empty { Empty }
22 fn should_panic(_: Foo, _: Empty) {
27 should_panic(Foo(1), empty());
31 let ret = thread::spawn(test).join();
32 assert!(ret.is_err());