blob: e9a20e8132466632e28f1f584311ede674cbe91a (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
// 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() {
assert str::is_empty(~"Ensure that the child task runs by failing");
}
|