type t = { f: fn() -> T }; fn f(_x: t) {} fn main() { let x: t<()> = { f: { || () } }; f(x); //~ ERROR copying a noncopyable value }