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

fn force(f: block()) { f(); }
fn main() { let x: int; force(block () { log_err x; }); }