4 #![allow(non_upper_case_globals)]
6 // ignore-emscripten no threads support
10 static mut dropped: bool = false;
28 unsafe { dropped = true; }
33 let ret = thread::spawn(move|| {
34 let _a = A { b: B { foo: 3 } };
36 assert!(ret.is_err());
37 unsafe { assert!(dropped); }