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

10 lines
171 B
Rust
Raw Normal View History

2011-07-25 18:57:27 -05:00
// error-pattern: non-copyable
// xfail-stage0
fn lol(&block() f) -> block() { ret f; }
fn main() {
auto i = 8;
auto f = lol(block() { log_err i; } );
f();
}