rust/src/test/run-pass/spawn-module-qualified.rs
2011-09-02 22:11:42 -07:00

10 lines
177 B
Rust

use std;
import std::task::join;
import std::task::spawn_joinable;
fn main() { let x = spawn_joinable(bind m::child(10)); join(x); }
mod m {
fn child(i: int) { log i; }
}