pub fn is_const_evaluatable<'tcx>(
    infcx: &InferCtxt<'tcx>,
    unexpanded_ct: Const<'tcx>,
    param_env: ParamEnv<'tcx>,
    span: Span
) -> Result<(), NotConstEvaluatable>
Expand description

Check if a given constant can be evaluated.