type t = { f: fn() -> T }; fn f(_x: t) {} fn main() { let x: t<()> = { f: { || () } }; //~ ERROR expected & closure, found @ closure //~^ ERROR in field `f`, expected & closure, found @ closure f(x); }