rust/src/test/compile-fail/block-uninit.rs

5 lines
147 B
Rust
Raw Normal View History

2011-07-25 16:57:27 -07:00
// error-pattern: Unsatisfied precondition constraint
fn force(f: block()) { f(); }
fn main() { let x: int; force(block () { log(error, x); }); }