// issue: rust-lang/rust#90192 // ICE assertion failed: matches!(ty.kind(), ty :: Param(_)) //@ compile-flags:-Zpolymorphize=on -Zmir-opt-level=3 //@ build-pass fn test() { std::mem::size_of::(); } pub fn foo(_: T) -> &'static fn() { &(test:: as fn()) } fn outer() { foo(|| ()); } fn main() { outer::(); }