//@ compile-flags:-Zpolymorphize=on //@ build-pass fn test() { std::mem::size_of::(); } pub fn foo(_: T) -> &'static fn() { &(test:: as fn()) } fn outer() { foo(|| ()); } fn main() { outer::(); }