rust/src/test/run-pass/spawn-module-qualified.rs
2012-01-06 22:40:31 -08:00

10 lines
178 B
Rust

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