Skip to main content

contains_unknown_fn

Function contains_unknown_fn 

Source
fn contains_unknown_fn<'tcx>(ty: Ty<'tcx>) -> Option<Ty<'tcx>>
Expand description

Used to check whether a const or static has a function pointer callable at runtime.

c.f. Ty::contains_closure