rustc_trait_selection::error_reporting::traits::suggestions

Function get_explanation_based_on_obligation

Source
pub(super) fn get_explanation_based_on_obligation<'tcx>(
    tcx: TyCtxt<'tcx>,
    obligation: &PredicateObligation<'tcx>,
    trait_predicate: PolyTraitPredicate<'tcx>,
    pre_message: String,
) -> String