rust/src/test/run-pass/last-use-is-capture.rs
2012-07-01 19:19:32 -07:00

9 lines
147 B
Rust

// Make sure #1399 stays fixed
fn main() {
fn invoke(f: fn@()) { f(); }
let k = ~22;
let _u = {a: k};
invoke(|| log(error, k) )
}