rust/src/test/run-pass/last-use-is-capture.rs

9 lines
147 B
Rust
Raw Normal View History

// Make sure #1399 stays fixed
fn main() {
fn invoke(f: fn@()) { f(); }
let k = ~22;
let _u = {a: k};
2012-06-30 18:19:07 -05:00
invoke(|| log(error, k) )
}