We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2790184 + 02c6f6b commit d4ba1caCopy full SHA for d4ba1ca
src/test/run-pass/extern-call-deep2.rs
@@ -8,10 +8,10 @@
8
// option. This file may not be copied, modified, or distributed
9
// except according to those terms.
10
11
-#![feature(std_misc, libc)]
+#![feature(libc)]
12
13
extern crate libc;
14
-use std::thread::Thread;
+use std::thread;
15
16
mod rustrt {
17
@@ -42,9 +42,9 @@ fn count(n: libc::uintptr_t) -> libc::uintptr_t {
42
pub fn main() {
43
// Make sure we're on a task with small Rust stacks (main currently
44
// has a large stack)
45
- let _t = Thread::spawn(move|| {
+ thread::scoped(move|| {
46
let result = count(1000);
47
println!("result = {}", result);
48
assert_eq!(result, 1000);
49
- });
+ }).join();
50
}
0 commit comments