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

10 lines
178 B
Rust
Raw Normal View History

use std;
import task::join;
import task::spawn_joinable;
2012-01-04 23:14:53 -06:00
fn main() { let x = spawn_joinable {|| m::child(10); }; join(x); }
2011-07-27 07:48:34 -05:00
mod m {
fn child(&&i: int) { log(debug, i); }
2011-07-27 07:48:34 -05:00
}