rust/src/test/compile-fail/block-uninit.rs
2012-01-23 19:06:33 -08:00

5 lines
141 B
Rust

// error-pattern: Unsatisfied precondition constraint
fn force(f: fn()) { f(); }
fn main() { let x: int; force(fn&() { log(error, x); }); }