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

5 lines
141 B
Rust
Raw Normal View History

2011-07-25 16:57:27 -07:00
// error-pattern: Unsatisfied precondition constraint
2012-01-23 14:59:00 -08:00
fn force(f: fn()) { f(); }
fn main() { let x: int; force(fn&() { log(error, x); }); }