2011-11-21 03:56:00 -06:00
|
|
|
// error-pattern: block type can only appear
|
2011-07-25 18:57:27 -05:00
|
|
|
|
2011-09-12 04:27:30 -05:00
|
|
|
fn lol(f: block()) -> block() { ret f; }
|
2011-08-19 17:16:48 -05:00
|
|
|
fn main() { let i = 8; let f = lol(block () { log_err i; }); f(); }
|