c337fd5467
This is so that when a child dies after the parent, it still holds a valid pointer and can call supervisor->kill() safely.
14 lines
267 B
Rust
14 lines
267 B
Rust
// Currently failure doesn't propagate correctly to owning tasks so xfailed
|
|
// xfail-test
|
|
// error-pattern:explicit
|
|
use std;
|
|
import std::task;
|
|
|
|
// We don't want to see any invalid reads
|
|
fn main() {
|
|
fn f() {
|
|
fail;
|
|
}
|
|
let g = f;
|
|
task::spawn(g);
|
|
} |