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