rust/src/test/compile-fail/block-copy.rs
2011-11-21 11:01:15 +01:00

5 lines
155 B
Rust

// error-pattern: block type can only appear
fn lol(f: block()) -> block() { ret f; }
fn main() { let i = 8; let f = lol(block () { log_err i; }); f(); }