type t = { f: fn() -> T }; fn f(_x: t) {} fn main() { let x: t<()> = { f: || () }; //~ ERROR expressions with stack closure f(x); }