summary refs log tree commit diff
path: root/src/test/compile-fail/block-uninit.rs
blob: 4d7f73b341c79c9d3b4ca71d6d6757f87a6ccf75 (plain)
1
2
3
4
// error-pattern: Unsatisfied precondition constraint

fn force(f: block()) { f(); }
fn main() { let x: int; force(block () { log(error, x); }); }