[−][src]Function rustc_trait_selection::traits::const_evaluatable::is_const_evaluatable
pub fn is_const_evaluatable<'cx, 'tcx>(
infcx: &InferCtxt<'cx, 'tcx>,
def: WithOptConstParam<DefId>,
substs: SubstsRef<'tcx>,
param_env: ParamEnv<'tcx>,
span: Span
) -> Result<(), ErrorHandled>
Check if a given constant can be evaluated.