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