rust/src/test/run-pass/spawn-module-qualified.rs

10 lines
177 B
Rust
Raw Normal View History

use std;
import std::task::join;
import std::task::spawn_joinable;
2011-09-02 15:34:58 -07:00
fn main() { let x = spawn_joinable(bind m::child(10)); join(x); }
2011-07-27 14:48:34 +02:00
mod m {
fn child(i: int) { log i; }
2011-07-27 14:48:34 +02:00
}