fn contains_unknown_fn<'tcx>(ty: Ty<'tcx>) -> Option<Ty<'tcx>>
Used to check whether a const or static has a function pointer callable at runtime.
const
static
c.f. Ty::contains_closure