Function rustc_trait_selection::traits::const_evaluatable::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.