2011-11-21 03:56:00 -06:00
|
|
|
// error-pattern: block type can only appear
|
2011-07-25 18:57:27 -05:00
|
|
|
|
2012-01-23 16:59:00 -06:00
|
|
|
fn lol(f: fn()) -> fn() { ret f; }
|
2011-12-22 16:42:52 -06:00
|
|
|
fn main() {
|
|
|
|
let i = 8;
|
2012-01-23 16:59:00 -06:00
|
|
|
let f = lol(fn&() { log(error, i); });
|
2011-12-22 16:42:52 -06:00
|
|
|
f();
|
|
|
|
}
|