2011-11-11 16:19:15 -06:00
|
|
|
// xfail-win32
|
2011-09-06 20:16:39 -05:00
|
|
|
// error-pattern:explicit
|
|
|
|
use std;
|
|
|
|
import std::task;
|
|
|
|
|
|
|
|
// We don't want to see any invalid reads
|
|
|
|
fn main() {
|
2011-11-11 16:19:15 -06:00
|
|
|
fn f(&&_i: ()) {
|
2011-09-06 20:16:39 -05:00
|
|
|
fail;
|
|
|
|
}
|
2011-11-11 16:19:15 -06:00
|
|
|
task::spawn((), f);
|
2011-09-06 20:16:39 -05:00
|
|
|
}
|