rust/src/test/compile-fail/block-copy.rs
Marijn Haverbeke 9cf48d3753 Preparation for kind system overhaul
This goes before a snapshot, so that subsequenct patches can make the
transition without breaking the build. Disables kind checking pass, makes
parser accept both new and old-style kind annotation.

Issue #1177
2011-11-18 10:52:28 +01:00

6 lines
184 B
Rust

// error-pattern: needed shared type, got pinned type block
// xfail-test
fn lol(f: block()) -> block() { ret f; }
fn main() { let i = 8; let f = lol(block () { log_err i; }); f(); }