rustc_trait_selection::traits::const_evaluatable

Function is_const_evaluatable

Source
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.