Function rustc_middle::ty::diagnostics::suggest_constraining_type_params
source · [−]pub fn suggest_constraining_type_params<'a>(
tcx: TyCtxt<'_>,
generics: &Generics<'_>,
err: &mut Diagnostic,
param_names_and_constraints: impl Iterator<Item = (&'a str, &'a str, Option<DefId>)>
) -> boolExpand description
Suggest restricting a type param with a new bound.