// option. This file may not be copied, modified, or distributed
// except according to those terms.
-use std::thread::Thread;
+// ignore-emscripten no threads support
+
+use std::thread;
static mut dropped: bool = false;
}
struct B {
- foo: int,
+ foo: isize,
}
impl Drop for A {
}
pub fn main() {
- let ret = Thread::scoped(move|| {
+ let ret = thread::spawn(move|| {
let _a = A { b: B { foo: 3 } };
}).join();
assert!(ret.is_err());