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

10 lines
164 B
Rust
Raw Normal View History

use std;
import task::join;
import task::spawn_joinable;
fn main() { let x = spawn_joinable(10, m::child); join(x); }
2011-07-27 07:48:34 -05:00
mod m {
2011-10-20 22:34:04 -05:00
fn child(&&i: int) { log i; }
2011-07-27 07:48:34 -05:00
}