2012-05-29 14:14:44 -05:00
|
|
|
// error-pattern: stack closure 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();
|
|
|
|
}
|