//@ compile-flags:-Zpolymorphize=on //@ build-pass use std::any::TypeId; pub fn foo(_: T) -> TypeId { TypeId::of::() } fn outer() { foo(|| ()); } fn main() { outer::(); }