2012-01-08 11:19:44 -08:00
|
|
|
// error-pattern:Ensure that the child task runs by failing
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
// the purpose of this test is to make sure that task::spawn()
|
|
|
|
// works when provided with a bare function:
|
|
|
|
task::spawn(startfn);
|
|
|
|
}
|
|
|
|
|
|
|
|
fn startfn() {
|
2012-07-13 22:57:48 -07:00
|
|
|
assert str::is_empty(~"Ensure that the child task runs by failing");
|
2012-01-08 11:19:44 -08:00
|
|
|
}
|