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

4 lines
143 B
Rust
Raw Normal View History

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