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

5 lines
146 B
Rust
Raw Normal View History

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