12 lines
177 B
Rust
12 lines
177 B
Rust
|
// 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);
|
||
|
}
|